StevenDevooght / tinyMCE-mention

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

mention autocomplete does not trigger when there is an active selection #65

Open Kobee1203 opened 6 years ago

Kobee1203 commented 6 years ago

The prevCharIsSpace() function doesn't check if there is a selected text. I added a new condition to check if there is a selected text. I renamed this function to be consistent with what it does.

StevenDevooght commented 6 years ago

Thx, I'll merge this one when I find the time.