luatnd / jquery-mentiony

jQuery plugin for making @mention feature - work exactly the same as Facebook, using contenteditable. Transform textarea/input into contenteditable.
MIT License
14 stars 14 forks source link

Alt + enter keys to force new line #6

Open martingg88 opened 6 years ago

martingg88 commented 6 years ago

Any Idea how to force a new line by combination of ALT and enter keys?

Thanks.

luatnd commented 6 years ago

Hi @martingg88, This plugin using div[contenteditable]. So that to display a newline a simply put a <br> tag in your content. And to handle the ALT+Enter key. You need to custom (add) some code to handle it (This plugin have not supported it currently). Is this match your question?

BoumBam commented 5 years ago

is that plug-in compatible with: https://github.com/mervick/emojionearea

luatnd commented 5 years ago

@BoumBam Both emojionearea and mentiony are transforming textarea into div[contenteditable], so that they cannot work together at this time. To achieve that purpose., you need to customize either emojionearea or mentiony by your self :(