This article mainly introduces how to use Ueditor Rich Text Editor in ThinkPHP. If you need it, you can download the following plug-in:
Http://ueditor.baidu.com/website/download.html#ueditor
UEditor official documentation:
Http://ueditor.baidu.com/website/document.html
Previous versions released in the "ThinkPHP-code" case:
Http://www.thinkphp1.cn/code/175.html
Decompress UEditor to: PUBLIC/Ueditor (the directories at the same level include Common, Conf, Lib, and Tpl)
For example, in Tpl/model/model.html:
Ueditor Text Editor Complete demo
Obtain the entire html content Obtain content Write content Append content Obtain plain text Obtain plain text with format Determine whether content exists Focus on the editor
Obtain the selected text Insert the specified content Editable Not editable Hide Editor Show Editor Set the editor height to 300
Create Editor Delete Editor Submit