Home > Backend Development > PHP Tutorial > PHP calls kindedit rich text editor.

PHP calls kindedit rich text editor.

WBOY
Release: 2016-07-29 09:04:08
Original
1275 people have browsed it

Add calling editor code between

.

<!--调用kind富文本编辑器。-->
<script charset="utf-8" src="/editor/kindeditor.js"></script>
<script charset="utf-8" src="/editor/lang/zh_CN.js"></script>
<script>
        KindEditor.ready(function(K) {
                window.editor = K.create('#editor_id');
        });
</script>
Copy after login

Add the following code in the article content area.

<td style="text-align:right;">文章内容:</td>
<script charset="utf-8" src="/editor/kindeditor.js"></script>
<script>
        KE.init({
        id : 'editor_id'
});
$.ready(function() {
        KE.create('editor_id');
});
</script>
<td><textarea  id="editor_id" name="content" rows="20" width="100%" ></textarea>
</td>
Copy after login
Finally see the result in the picture.



The above introduces how PHP calls the kindedit rich text editor. , including relevant content, I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template