Chrome/Safari support css:
-webkit-user-modify:read-write-plaintext-only , which can disable user paste rich text into a contenteditable div.
I do not know how to get it in firefox and IE.
Chrome/Safari support css:
-webkit-user-modify:read-write-plaintext-only , which can disable user paste rich text into a contenteditable div.
I do not know how to get it in firefox and IE.
I believe you can use the -moz prefix for firefox
-moz-user-modify: read-write-plaintext-only;
And for IE (10+) you can use the -ms prefix
-ms-user-modify: read-write-plaintext-only;
It would also be proper to add it without the prefix for future proofing ;)
user-modify: read-write-plaintext-only;