Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Vue 2.4 cursor jumping, plus a possible fix #4

@rowlandrose

Description

@rowlandrose

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions