-
-
Notifications
You must be signed in to change notification settings - Fork 615
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
empty() does not work properly #1329
Comments
It is a browser-level issue I think :/ |
thanks.
it works with chrome, safari, opera and firefox on MAC (not tested on windows). it resets all font, color, etc... |
I see that, Maybe it could be added in a next version since we do not have to support IE these days |
Maybe I can add this to the next version since we do not have to support IE these days :) |
you are welcome, thank you for the great product. ps: fyi, there is another working solution as I read that execcommand is or will soon be deprecated:
note: $('.trumbowyg-editor').html('') alone does not work for some reason... |
When pasting a colored text copied from Word, and deleting it immediately, any new char typed has the font and color of the pasted text (even after calling empty() ??
Description
on MAC, Chrome
How to reproduce?
As explained above:
1/ select some red text copied from word for example
2/ paste it (here for example : https://alex-d.github.io/Trumbowyg/demos/ )
3/ delete it
4/ type some chars... -> they are red ??
The text was updated successfully, but these errors were encountered: