How to get user-modify:read-write-plaintext-only behaviour in Firefox and IE

家住魔仙堡 提交于 2019-12-23 07:42:12

问题


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.


回答1:


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;


来源:https://stackoverflow.com/questions/18484006/how-to-get-user-modifyread-write-plaintext-only-behaviour-in-firefox-and-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!