Home >Backend Development >PHP Tutorial >php calls CKEditor editor_PHP tutorial
************************
Title:php calls CKEditor editor
Author:insun
Blog:http://yxmhero1989.blog.163.com
******************/
In the past, it was still fckeditor in the hacker world. Various CMSs liked to call it, and hackers also liked to find many holes in it.
Recently I am building a php backend in my company and I need to call the editor
First quote its js between :
Then call:
================================================== =========================================
The 3.x version is very convenient to use, and you don’t have to worry about forming two contents with the same name. In fact, it is okay to omit the id of the textarea, because CKEditor will first search by name. If it cannot be found, it will then search by id. And the editor will replace the original textarea at the position of textarea.
Set editor skin, width and height
The skin value should be a folder name under the ckeditor/skins folder. If it points to a non-existent skin, the editor will not be displayed.
Set value (can also be used to clear value)
or
Get value
or
Insert picture
To demonstrate this example, it is best to put it in the event handler of the button, aiming for some delay.