|
|
@ -18,6 +18,7 @@ |
|
|
|
import _ from 'lodash' |
|
|
|
import { get, sync } from 'vuex-pathify' |
|
|
|
import DecoupledEditor from '@requarks/ckeditor5' |
|
|
|
// import DecoupledEditor from '../../../../wiki-ckeditor5/build/ckeditor' |
|
|
|
import EditorConflict from './ckeditor/conflict.vue' |
|
|
|
import { html as beautify } from 'js-beautify/js/lib/beautifier.min.js' |
|
|
|
|
|
|
@ -110,6 +111,11 @@ export default { |
|
|
|
linkIsDownloadable: true |
|
|
|
}) |
|
|
|
break |
|
|
|
case 'DIAGRAM': |
|
|
|
this.editor.execute('imageInsert', { |
|
|
|
source: `data:image/svg+xml;base64,${opts.text}` |
|
|
|
}) |
|
|
|
break |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|