内容可编辑选择 [英] ContentEditable Alternative
本文介绍了内容可编辑选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在研究创建一个Rich Text编辑器,起初我打算使用contentEditable,但事实证明,结果非常不一致,并且输出HTML经常被打破。
我想知道是否有其他方法可以使用contentEditable,例如Google Docs的功能(他们创建了自己的引擎)。
解决方案
为什么不给TinyMCE呢?这是相当不错的,相当精致 - 只需要将它与PHP结合起来,你就可以保存内容:)
I've been looking into creating a Rich Text editor, and at first I was planning on using contentEditable, but it turns out the results are extremely inconsistent and that the output HTML is often broken.
I was wondering if there are any alternatives to using contentEditable, such as the way Google Docs does it (they created there own engine).
解决方案
Why not give TinyMCE a go? It is quite good and fairly refined - just need to combine it with PHP and you can save the contents :)
这篇关于内容可编辑选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文