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

Mentions replace HTML losing after click outside textarea #432

Open
pbriongos opened this issue Apr 9, 2021 · 0 comments
Open

Mentions replace HTML losing after click outside textarea #432

pbriongos opened this issue Apr 9, 2021 · 0 comments

Comments

@pbriongos
Copy link

Hi,
I have fully working the @ mentions with emojionearea (thanks to the @mervick code) but I have a problem. When you search the mention and click it returns the HTML ok to the textarea with this:
.... replace: function (value) { return '<b>@' + value + '</b>&nbsp;'; } ,... .
And it displays Ok in the textarea in bold, but when you click outside the textarea or any other element it reverts and the HTML surrounding dissappears, in this case the bold surrounding.

imagen

You can try here:
https://jsfiddle.net/7qwLcmv8/

Any form to mantain the HTML returned? And thus save ok to de DB and display it ok when claimed.

Thanks

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

No branches or pull requests

1 participant