ckeditor / ckeditor5-vue2

Official CKEditor 5 component for Vue.js 2.x.
Other
35 stars 17 forks source link

when editing lots of content ,will lag and be very slow #50

Open NorthWind17 opened 5 months ago

NorthWind17 commented 5 months ago

editing lots of content, the editor will lag and be very slow in Vue2

"vue": "^2.7.14", "@ckeditor/ckeditor5-vue2": "^3.0.1", "ckeditor5-custom-build": "file:ckeditor5",

`<ckeditor ref="ckeditor" :value="editorData" :editor="editor" :config="editorConfig" :disabled="!isEdit" @ready="onReady" @input="onEditorInput" @destroy="onEditorDestroy" @blur="onBlurFn"

import CKEditor from '@ckeditor/ckeditor5-vue2' import Editor from 'ckeditor5-custom-build/build/ckeditor' `

but if i use ClassicEditor.create(document.querySelector('.stEditorCopy'), config) .then((editor) => { window.editor = editor }) .catch((error) => { console.error('Oops, something went wrong!') console.error( 'Please, report the following error on https://github.com/ckeditor/ckeditor5/issues with the build id and the error stack trace:' ) console.warn('Build id: w2x4hsrl3dlt-xws7pn8ntdyc') console.error(error) }) Having the same amount of content won't lag and slow,This is strange