Text Editor plug-in rich content, compared to the traditional textarea tag input to use a lot, see how to introduce in the page implementation
1. Download the appropriate Resource pack (can go to the official website to download the appropriate version), I was introduced by PHP
2. Download and unzip to a location. (I'm using the TP framework, so I put it under my designated public folder Pbulic)
3. Introducing in the page
First write the path to the resource bundle in the head tag, and the path to write the path to the resource bundle.
<Scripttype= "Text/javascript"src= "__public__/ueditor/ueditor.config.js"></Script><Scripttype= "Text/javascript"src= "__public__/ueditor/ueditor.all.min.js"></Script><Scripttype= "Text/javascript"src= "__public__/ueditor/lang/zh-cn/zh-cn.js"></Script>
Reserve a label where it needs to be inserted, either DIV or textarea to have the tag's ID as content
Add JS code to the editor at the end of the page
<Scripttype= "Text/javascript">Ue.geteditor ('content', {initialframewidth: -, Initialframeheight: $}) </Script>
Now the page will be displayed correctly.
How PHP introduced Baidu ueditor Rich text editor