在使用TinyMCE时,其实它就是把你的textarea变成了一个iframe,让你使它提供的按钮在iframe的html里加入html代码,那如何在里面打字呢?使用CONTENTEDITABLE!
2010-01-23 11:57:38
CONTENTEDITABLE就是body标签的一个属性,共三个值:
inherit
Default. Content's ability to be edited by user is inherited from object's parent.
false
Content cannot be edited by the user.
true
Content can be edited by the user.
只需要<body CONTENTEDITABLE="true">就ok了!