Ueditor Online Editor Plugin
Address: http://ueditor.baidu.com/website/
Trial Experience:
Help Document: http://fex.baidu.com/ueditor/
?
Real Exercise
- Introducing Files
- You need to define an ID attribute for textarea
Interested in understanding sea.js Solve the problem of JS sequential loading
- Call with Ue.geteditor ("ID")
Effect:
- It can be easily configured.
Specific configuration file information
Questions after using the online editor:
HTML tags were not displayed properly after the online editor, mainly because the Htmlspecailchars () function was used in the I () function to filter the data submitted by the form.
Solution to the problem:
- Removing the Htmlspecailchars function of the system
- Using the Htmlpurifier plug-in implementation
- Solution to the problem: this plugin can distinguish the <script> code, remove this block of code. Other HTML code is not escaped.
Htmlpurifier plug-in use
Learning Address:
Http://www.piaoyi.org/php/HTML-Purifier-PHP-xss.html
Website:
http://htmlpurifier.org/
?
Project Practice
1. Placing files (Web site root directory)
- Create a function.php file in the common of TP (note that the file does not have S)
- Define your own defined filter functions in the project configuration file
Ueditor Online Editor using