Dzwebs.Net

撰写电脑技术杂文十余年

xheditor自定义表情emots

Admin | 2017-2-2 13:16:19 | 被阅次数 | 4166

温馨提示!

如果未能解决您的问题,请点击搜索;登陆可复制文章,点击登陆

  怎么覆盖xhEditor编辑器自带的默认表情?

  只需把自定义表情的名称设置为default,即可覆盖掉编辑器中自带的表情组。下面为操作示例:

  删除xheditor_emot文件夹中的default文件夹 

  将自定义的表情文件夹名改为default

  说到这里,很多人估计也配置不成功,下面再说详细点,总之,保存表情的文件夹,其名称一定为default。

  接着,就是代码的问题了,下面看代码。

$('#content1').xheditor({tools:'Cut,Copy,Paste,Pastetext,Fontface,FontSize,Bold,Italic,Underline,Strikethrough,FontColor,BackColor,Emot',emots:{'default':{name:'MSN',count:40,width:22,height:22,line:8}},upImgUrl: "../upload.aspx", upImgExt: "jpg,jpeg,gif,png",upFlashUrl:'../upload.aspx',upMediaUrl:'../upload.aspx',localUrlTest:/^https?:\/\/[^\/]*?(wsbst\.net)\//i,remoteImgSaveUrl:"saveremoteimg.aspx"});

  看清楚上面的代码了吗?有一个emots,就靠它了。


该杂文来自: 网页制作杂文

上一篇:jquery设置select标签的默认项

下一篇:var ws = require('ws').Server;报错

网站备案号:

网站备案号:滇ICP备11001339号-7

版权属性:

Copyright 2007-2021-forever Inc. all Rights Reserved.

联系方式:

Email:dzwebs@126.com QQ:83539231 访问统计