Kindeditor.ready (function(K) {varEditor =K.editor ({allowfilemanager:true }); //Upload ImageK (' #imageBtn '). Click (function() {Editor.loadplugin (' Image ',function() {Editor.plugin.imageDialog ({imageurl:k (' #image '). Val (), CLICKFN:function(URL) {K (' #image '). val (URL); Editor.hidedialog (); } }); }); }); //Uploading FilesK (' #fileBtn '). Click (function() {Editor.loadplugin (' InsertFile ',function() {Editor.plugin.fileDialog ({fileurl:k (' #file '). Val (), CLICKFN:function(URL, title) {K (' #file '). val (URL); Editor.hidedialog (); } }); }); }); });
Editor settings and calls
Kindeditor.ready (function(K) {varOptions ={width:' 670px ', MinWidth:' 670px ', Height:' 200px ', Resizetype:0, Newlinetag:' BR ', FilterMode:false, Wellformatmode:false, Afterblur:function() { This. sync (); } }; varEditor = k.create (' textarea[name= ' content "] ', Options); });
Kindeditor upload pictures Individually, upload files separately, common settings and calls to the editor