如何在Mootools中切换RTE视图

时间:2012-03-26 09:26:52

标签: php javascript mootools

mootools rte上的切换按钮如何工作,请参阅http://jsfiddle.net/cheeaun/NHBVa/上的示例

它是如何从html编码转换为rte。

先谢谢

1 个答案:

答案 0 :(得分:1)

答案在源代码中?

https://github.com/cheeaun/mooeditable/blob/master/Source/MooEditable/MooEditable.js#L587-603

textarea总是在那里,但通常是隐藏的。切换交换textarea或预览iframe的显示状态,在预览模式下,它将textarea的值导出为iframe的内容,使其呈现。

它通过this.mode保持状态。不确定我还能添加什么...