StevenDevooght / tinyMCE-mention

Mention/Autocomplete plugin for tinyMCE WYSIWYG editor.
http://stevendevooght.github.io/tinyMCE-mention/
220 stars 95 forks source link

Adding a new mention at the beginning of a line is impossible when there is already text on this line #63

Closed Kobee1203 closed 6 years ago

Kobee1203 commented 6 years ago

In the prevCharIsSpace function, 'start' variable can be lower than 0, so it computes a substring with a negative value as first argument

Watch the video as an attachment to see the problem mention.zip

StevenDevooght commented 6 years ago

Thx, I will have a look at merge this one.