thinkphp 整合kindeditor

最后更新于:2022-04-01 23:49:15

[TOC] ## 1.引入kindeditor的两个js文件 ~~~ < script charset = "utf-8" src = "/Data/Common/kindeditor/kindeditor.js"> < script charset = "utf-8" src = "/Data/Common/kindeditor/lang/zh-CN.js"> ~~~ ## 2.构造表单 ~~~ < form method = "post"> 内容: < textarea id = "editor_id" name = "content" style = "width:700px;height:300px;"> & lt;strong & gt;HTML内容 & lt; / strong & gt; < input type = "submit"/> ~~~ ## 3.初始化编辑器 ~~~ < script > KindEditor.ready( function(K) { window.editor = K.create('#editor_id'); }); ~~~
';