Gre*_*reg 4 html javascript formatting html5 contenteditable
如果我在这样的页面上格式化一段文字:
document.execCommand('formatBlock', false, 'h1');
Run Code Online (Sandbox Code Playgroud)
如何删除此格式?
Koo*_*Inc 13
我想document.execCommand('removeFormat',false,false)会这样做吗?
发行document.execCommand('formatBlock', false, 'div')的<h1>嵌段将删除<h1>-标签,并用其替换<div>-标签1.那可行吗?
1如果你没有使用IE浏览器