StevenDevooght / tinyMCE-mention

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

set NEWLINE as delimiter #43

Closed payamka closed 7 years ago

payamka commented 8 years ago

Hi Thank you for this great plugin.

I have a question. How I can set NEWLINE as a delimiter then lookup run in new line after typing any thing?

Thank you!

StevenDevooght commented 8 years ago

Hi,

I'am afraid that is not possible since tinyMCE converts line breaks to <p></p> tags.

Is there an other character you can use to solve your problem?

payamka commented 8 years ago

Thank you for your answer. I want to run lookup after typing any character and stops after space char. Is it possible?

StevenDevooght commented 8 years ago

Start lookup after any character can be done in theory if you configure any character in de delimiter array. (https://github.com/StevenDevooght/tinyMCE-mention#array-1).

Stopping after space is not possible at the moment. You have to select a value from the dropdown using the mouse or hitting the ENTER button.