vue-tinymce
vue-tinymce copied to clipboard
Vue 2.4 cursor jumping, plus a possible fix
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.