今日遇到了ckeditor换自定义表情的问题
在ckeditor/config.js
复制如下代码
CKEDITOR.editorConfig = function( config ) { config.language = 'zh-cn'; // 配置语言 config.uiColor = '#CCCCCC'; // 背景颜色 config.width = '500px'; // 宽度 config.height = '180px'; // 高度 // config.skin = 'kama'; //界面v2,kama,office2003 config.toolbar = [ ['Source','Bold','Italic','Underline','Strike','-','Subscript','Superscript'], ['NumberedList','BulletedList','-','Outdent','Indent','-','TextColor','BGColor'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','Maximize', 'ShowBlocks','-','Undo','Redo'], ['Image','Flash','Smiley','SpecialChar'], ['Styles','Format','Font','FontSize','Preview'] ]; //配置操作界面上的工具按钮 自定义工具栏 config.font_names = '宋体/宋体;黑体/黑体;仿宋/仿宋 _GB2312;楷体/楷体_GB2312;隶书/隶书;幼圆/幼圆;'+ config.font_names ;//增加中文字体 config.toolbarCanCollapse = false; config.enterMode =CKEDITOR.ENTER_BR; config.smiley_path='ckeditor/images/';//我的ckeditor在根目录 config.smiley_images=['1_1.gif','1_2.gif'];//图片放在上面的那个位置,这里写图片名称集合 };