博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
kindeditor 操作时同步到textarea
阅读量:6995 次
发布时间:2019-06-27

本文共 561 字,大约阅读时间需要 1 分钟。

KindEditor.ready(function(K) {

editor1 = K.create('textarea[name="sponsor"]', {
resizeType : 1,
allowPreviewEmoticons : false,

allowImageUpload : true,

uploadJson : 'upload.php',

afterCreate : function() { this.sync(); }, //关键是这两个

afterBlur: function(){this.sync();},//关键是这两个
items : [
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'link']
});
});

转载于:https://www.cnblogs.com/jackspider/p/4209472.html

你可能感兴趣的文章
用win7防止局域网内的ARP***
查看>>
【基础】 mysqldump 创建基于GTID的从库
查看>>
南方常见藤本
查看>>
Windows Server 2012 R2 VDI系列(五)—配置RDSH角色
查看>>
VBOX命令行创建虚拟机 及开启远程访问
查看>>
用批处理修改IP地址
查看>>
无线的规划(思路很重要 ,拿去忽悠人不错)
查看>>
ARM和嵌入式系统开发
查看>>
选择阿里云数据库HBase版十大理由
查看>>
大数据环境下数仓设计
查看>>
求1+2+…+n,要求不能使用乘除法、for、while、if、else...
查看>>
计算1970到现在的秒数
查看>>
windows mysql主从服务器建立
查看>>
初识linux之编译安装Nginx以及基本配置
查看>>
我的友情链接
查看>>
struts1标签库
查看>>
为何总是拿到薪资范围下限的offer?
查看>>
事务一致性的错误
查看>>
jquery中使用css,offset和position设置top和left属性
查看>>
MyBatis 之 延迟加载(Lazy Load)
查看>>