vue-tinymce icon indicating copy to clipboard operation
vue-tinymce copied to clipboard

Vue 2.4 cursor jumping, plus a possible fix

Open rowlandrose opened this issue 7 years ago • 5 comments

I was experiencing the cursor jumping to the beginning of the tinymce textarea every time I did a key up. This made entering text pretty much impossible. I narrowed it down to this line in tinymce.vue:

editor.on('NodeChange Change KeyUp', (e) => {

I was able to fix the behavior by changing it to:

editor.on('Blur', (e) => {

By using the "Blur" option, I was able to remove the cursor jumping and still achieve normal behavior as far as the underlying vue model staying updated. I have not fully thought through possible unintended consequences, but for my purposes it has worked well.

rowlandrose avatar Aug 03 '17 19:08 rowlandrose