tinyMCE-mention icon indicating copy to clipboard operation
tinyMCE-mention copied to clipboard

Fix issue with non breaking space after delimiter

Open jpopesculian opened this issue 7 years ago • 2 comments

Autocomplete can jump to the beginning of a node if there's a non breaking space after the delimiter when typing:

TinyMCE content:

<p>Hello my name is&nbsp;!</p>

If you were to type

<p>Hello my name is @&nbsp;!</p>

The autocomplete would fire and your cursor would select the beginning of the paragraph. The solution is just to reference the delimiter id when reselecting

jpopesculian avatar Jul 12 '17 21:07 jpopesculian

Thx, I will have a look why the tests are failing.

StevenDevooght avatar Jul 18 '17 06:07 StevenDevooght

Hi, I cannot really reproduce this issue...

The element you are selecting in the dom does not even exist? 'span#autocomplete-searchtext span#autocomplete-delimiter'

StevenDevooght avatar Jul 25 '17 13:07 StevenDevooght