Lest my question is not clear; I don't mean dynamically replacing <p>
nodes with <textarea>
. I mean editing each and all text directly - including headers, text in <div>
and <span>
and yes editing tables. I know this is possible in IE and I have a script which switches between editable and back which works in IE, but that doesn't work in Firefox. Is there any way to make it work in FF?
P.S. The script for IE I got from JavaScript Bible Gold Edition by Danny Goodman, 2001
发布评论
评论(2)
Firefox 的 Firebug 扩展 几乎允许您编辑任何内容。
Firebug Extension for Firefox pretty much allows you to edit anything.
在火狐浏览器中> 3 您可以将 contentEditable 用于我理解的 html 元素。 标签如下所示:
您可以使用“execCommand”控制编辑过程(请参阅:msdn 用于命令标识符)
In firefox > 3 you can use contentEditable for html elements I understood. A tag looks like this:
you can control the editing process with 'execCommand' (see: msdn for command identifiers)