Preface
(F) The use of functions is really good, but it feels too complicated and things are relatively large, not very convenient. It was produced by Baidu, however, after using it, I found that it is still quite useful. I personally feel that it should not be sprayed!
The example is also comprehensive, and the compatibility is also good, you can use it to try to set easyui.
Implementation
((! "KindEditor is not defined! "Opts = $. data (target, 'kindeditor 'editor = $. data (target, 'kindeditor '). options. editor = $. fn. kindeditor = (options = 'string' method = method (options = options |. each (state = $. data (, 'kindeditor '} state = $. data (, 'kindeditor 'options: $. extend ({}, $. fn. kindeditor. defaults, $. fn. kindeditor. parseOptions (create ($. fn. kindeditor. parseOptions = $. fn. kindeditor. methods = editor: $. data (jq [0], 'kindeditor '$. fn. kindeditor. ults = resizeType: 1 allowPreviewEmoticons: allowImageUpload: 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold ', 'italic ', 'underline' 'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|', 'emoticons ', 'image', 'link' afterChange: $. parser. plugins. push ("kindeditor"}) (jQuery, KindEditor );
KindEditor
Easyui-kindeditor Editor: EasyUI collection KindEditor settings get kindeditor Editor: KindEditor settings get
KindEditor.ready( editor = K.create('textarea[name="txtContent"]' allowFileManager: resizeType: 1 allowPreviewEmoticons: 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline' 'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist' 'insertunorderedlist', '|', 'emoticons', 'image', 'link' });