Home  >  Article  >  Backend Development  >  Tutorial on using kindeditor_PHP in PHP

Tutorial on using kindeditor_PHP in PHP

WBOY
WBOYOriginal
2016-07-13 10:35:181225browse

KindEditor is a set of open source HTML visual editors. It is mainly used to allow users to obtain WYSIWYG editing effects on websites. It is compatible with mainstream browsers such as IE, Firefox, Chrome, Safari, and Opera. KindEditor is written in JavaScript and can be seamlessly integrated with Java, .NET, PHP, ASP and other programs. KindEditor is very suitable for use in Internet applications such as CMS, shopping malls, forums, blogs, wikis, emails, etc. Since the first release of 2.0 in July 2006, KindEditor has continued to expand its editor market share relying on excellent user experience and leading technology. Currently, KindEditor It has become one of the most popular editors in China.

I heard that it is made in China and supports it, and it is quite easy to use.

Tutorial on using kindeditor_PHP in PHP <span use> KindEditor <span for> PHP <script> <span> KindEditor.ready(<span function><span><span> <span var> editor1 = K.create('textarea[name="content1"]',<span><span> cssPath : '../plugins/code/prettify.css', <span> uploadJson : '../php/upload_json.php', <span> fileManagerJson : '../php/file_manager_json.php', <span> allowFileManager : <span true>, <span> afterCreate : <span function><span><span> <span var> self =<span this><span> K.ctrl(document, 13, <span function><span><span> self.<span sync><span> K('form[name=example]')[0].<span submit><span> <span><span> K.ctrl(self.edit.doc, 13, <span function><span><span> self.<span sync><span> K('form[name=example]')[0].<span submit><span> <span><span> <span><span> <span><span> <span prettyprint><span> <span><span> KindEditor.ready(<span function><span><span> <span var> editor = K.<span editor><span> allowFileManager : <span true> <span> <span><span> K('#image1').click(<span function><span><span> editor.loadPlugin('image', <span function><span><span> editor.plugin.<span imagedialog><span> imageUrl : K('#url1').val(), <span> clickFn : <span function>(url, title, width, height, border,<span align><span> K('#url1').<span val><span> editor.<span hidedialog><span> <span><span> <span><span> <span><span> <span><span> <span><span> </script>

Title:

Category:

Cover image: (Internet image + local upload)

Cover description:

Content: