就像这样的,我也升级最新版本了,但是无法上传视频。真不理解。是不是在这里被禁止了???但是这个js我找不到在哪.......
<script src="kindeditor/kindeditor-min.js" charset="utf-8"></script>
|
|
<script src="http://kindeditor/lang/zh_CN.js" charset="utf-8"></script>
|
|
<script>
|
|
var KE;
|
|
KindEditor.ready(function(K) {
|
|
KE = K.create("textarea[name='g_body']", {
|
|
items : ['source', '|', 'fullscreen', 'undo', 'redo', 'print', 'cut', 'copy', 'paste',
|
|
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
|
|
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
|
|
'superscript', '|', 'selectall', 'clearhtml','quickformat','|',
|
|
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
|
|
'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'flash', 'media', 'table', 'hr', 'emoticons', 'link', 'unlink', '|', 'about'],
|
|
cssPath : "http://www.feiyoubang.com/data/resource/kindeditor/themes/default/default.css",
|
|
allowImageUpload : false,
|
|
allowFlashUpload : false,
|
|
allowMediaUpload : false,
|
|
allowFileManager : false,
|
|
syncType:"form",
|
|
afterCreate : function() {
|
|
var self = this;
|
|
self.sync();
|
|
},
|
|
afterChange : function() {
|
|
var self = this;
|
|
self.sync();
|
|
},
|
|
afterBlur : function() {
|
|
var self = this;
|
|
self.sync();
|
|
}
|
|
});
|
|
KE.appendHtml = function(id,val) {
|
|
this.html(this.html() + val);
|
|
if (this.isCreated) {
|
|
var cmd = this.cmd;
|
|
cmd.range.selectNodeContents(cmd.doc.body).collapse(false);
|
|
cmd.select();
|
|
}
|
|
return this;
|
|
}
|
|
});
|
|
</script>
|
????
|