Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with non breaking space after delimiter #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jpopesculian
Copy link

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

Autocomplete can jump to the beginning of a node if there's a non
breaking space after the delimiter when typing.
@StevenDevooght
Copy link
Owner

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

@StevenDevooght
Copy link
Owner

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants