多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] ## 1.引入kindeditor的两个js文件 ~~~ < script charset = "utf-8" src = "/Data/Common/kindeditor/kindeditor.js"></script > < script charset = "utf-8" src = "/Data/Common/kindeditor/lang/zh-CN.js"></script > ~~~ ## 2.构造表单 ~~~ < form method = "post"> 内容: < textarea id = "editor_id" name = "content" style = "width:700px;height:300px;"> & lt;strong & gt;HTML内容 & lt; / strong & gt; </textarea > < input type = "submit"/> </form > ~~~ ## 3.初始化编辑器 ~~~ < script > KindEditor.ready( function(K) { window.editor = K.create('#editor_id'); }); </script > ~~~