最新公告
  • 欢迎您光临329687站长资源网,本站秉承服务宗旨 履行“站长”责任,销售只是起点 服务永无止境!立即加入我们
  • ck编辑器官方插件集下载地址

    https://ckeditor.com/cke4/addon/

    需要下载的插件及依赖工具

    1、Code Snippet2、widget3、lineutils4、widgetselection

    安装步骤

    将下载的插件解压,并复制到帝国的ckeditor目录下,注意是后台的那个默认后台目录:eadminecmseditorinfoeditorplugins修改配置文件配置文件路径:eadminecmseditorinfoeditorconfig.js配置文件中共有两个工具条,一个是全功能的,一个是精简的在两个工具条中添加代码工具CodeSnippet然后在工具条下方添加代码工具的配置

    这里我把我的发上来供大家参考

    CKEDITOR.editorConfig=function(config){
    //Definechangestodefaultconfigurationhere.Forexample:
    //config.language='fr';
    //config.uiColor='#AADC6E';
    config.filebrowserImageUploadUrl='';
    config.filebrowserFlashUploadUrl=arraycs[0];
    config.filebrowserImageBrowseUrl=arraycs[1];
    config.filebrowserFlashBrowseUrl=arraycs[1];
    config.enterMode=CKEDITOR.ENTER_BR;
    config.shiftEnterMode=CKEDITOR.ENTER_P;
    config.allowedContent=true;
    config.font_names='宋体/宋体;黑体/黑体;仿宋/仿宋_GB2312;楷体/楷体_GB2312;隶书/隶书;幼圆/幼圆;微软雅黑/微软雅黑;'+config.font_names;
    //Toolbar
    config.toolbar_full=[
    {name:'document',groups:['mode','document','doctools'],items:['Source','-','Preview','Print']},
    {name:'clipboard',groups:['clipboard','undo'],items:['Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo']},
    {name:'paragraph',groups:['list','indent','blocks','align','bidi'],items:['NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl']},
    '/',
    {name:'basicstyles',groups:['basicstyles','cleanup'],items:['Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat','ecleanalltext','autoformat']},
    {name:'links',items:['Link','Unlink','Anchor']},
    {name:'insert',items:['Image','etranmore','Flash','etranmedia','etranfile','-','Table','HorizontalRule','SpecialChar','CodeSnippet','equotetext','einserttime','einsertpage','einsertbr']},
    '/',
    {name:'styles',items:['Styles','Format','Font','FontSize']},
    {name:'colors',items:['TextColor','BGColor']},
    {name:'tools',items:['ShowBlocks','NewPage','Templates']},
    {name:'others',items:['-']},
    {name:'editing',groups:['find','selection','spellchecker'],items:['Find','Replace','-','SelectAll','Maximize']}
    ];
    //Toolbar
    config.toolbar_basic=[
    {name:'document',groups:['mode','document','doctools'],items:['Source']},
    {name:'clipboard',groups:['clipboard','undo'],items:['Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo']},
    {name:'links',items:['Link','Unlink','Anchor']},
    {name:'insert',items:['Image','Table','HorizontalRule','SpecialChar','CodeSnippet']},
    {name:'tools',items:['Maximize']},
    {name:'others',items:['-']},
    '/',
    {name:'basicstyles',groups:['basicstyles','cleanup'],items:['Bold','Italic','Strike','-','RemoveFormat']},
    {name:'paragraph',groups:['list','indent','blocks','align','bidi'],items:['NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote']},
    {name:'styles',items:['Styles','Format']},
    ];
    config.extraPlugins='etranfile,etranmedia,etranmore,autoformat,ecleanalltext,einsertbr,einsertpage,einserttime,equotetext';
    config.extraPlugins='codesnippet';
    config.codeSnippet_theme='monokai_sublime';
    config.toolbar='full';
    };

    329站长网 » 帝国CMS7.5默认编辑器添加代码高亮

    常见问题FAQ

    免费下载或者VIP会员专享资源能否直接商用?
    本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。
    提示下载完但解压或打开不了?
    最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议用百度网盘软件或迅雷下载。若排除这种情况,可在对应资源底部留言,或 联络我们.。
    找不到素材资源介绍文章里的示例图片?
    对于PPT,KEY,Mockups,APP,网页模版等类型的素材,文章内用于介绍的图片通常并不包含在对应可供下载素材包内。这些相关商业图片需另外购买,且本站不负责(也没有办法)找到出处。 同样地一些字体文件也是这种情况,但部分素材会在素材包内有一份字体下载链接清单。
    329687站长资源网
    一个专注于各种网站源码、程序模板、技术教程分享的站长资源下载平台
    • 5会员总数(位)
    • 1950资源总数(个)
    • 0本周发布(个)
    • 0 今日发布(个)
    • 204稳定运行(天)

    提供最优质的资源集合

    立即查看 了解详情