KindEditor js设置值

KindEditor js设置值

<textarea id="txtMainContent" name="content" style="width:800px;height:400px;visibility:hidden;" />

</textarea>

editor = KindEditor.instances[0]; 找到文档中第一个KindEditor编辑器
editor.html(“htmls”); 

KindEditor 上传本地图片时图片被剪切问题

解决:

clickFn: function (url, title, width, height, border, align) {
var serverZpath = "http://192.168.1.111:8067/";
serverZpath += url;
url = serverZpath;
self.exec('insertimage', url, title, width, height, border, align);

 

或者

insertimage: function (url, title, width, height, border, align) {
title = _undef(title, '');
border = _undef(border, 0);
url = url.replace("http://192.168.1.111:8067/", "");
alert(url);

var serverZpath = "http://192.168.1.111:8067/";
serverZpath += url;
url = serverZpath;

posted @ 2013-12-24 11:31  zhushang  阅读(920)  评论(0编辑  收藏  举报