首页 > 其他分享 >ckeditor 4的config配置文件

ckeditor 4的config配置文件

时间:2024-01-17 11:11:07浏览次数:30  
标签:CodeSnippet ckeditor 配置文件 format h2 font config

CKEDITOR.editorConfig = function( config ) {
    // Define changes to default configuration here. For example:
    // config.language = 'fr';
    // config.uiColor = '#AADC6E';
    
    config.extraPlugins = 'clipboard,lineutils,widget,dialog,codesnippet';
    config.codeSnippet_theme='github';
    config.language='en';
    
    config.format_tags='p;h2';
    config.format_h2 = { element: 'h2', styles: { 'font-size': '16px','font-weight':'bold'} };
    
    config.toolbar='my';
    config.toolbar_my=[
        ['Source','Undo','Redo'],
        ['Bold','Italic','Underline','Strike','RemoveFormat'],
        ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
        ['Link','Unlink'],
        ['Table','HorizontalRule'],
        ['Format','Font','FontSize'],
        ['TextColor','BGColor'],
        ['Maximize', 'ShowBlocks','-'],
        ['CodeSnippet']
        ];
    
};

注意大小写,好比CodeSnippet,字母的大小写如果不对,会导致插件加载不正确。

 

blessingofwisdom.com

标签:CodeSnippet,ckeditor,配置文件,format,h2,font,config
From: https://www.cnblogs.com/coding8832/p/17969525

相关文章

  • jenkins启动报错:Failed Loading global config
    jenkins启动报错:FailedLoadingglobalconfig 问题起因:想在构建项目中使用复选框(ExtendedChoiceParameter),需要安装ExtendedChoiceParameter插件,但是因为版本过低的原因,导致插件无法正常安装。然后根据提示,就在jenkins的web页面进行了自动升级。但是在升级过程中......
  • 关于修改prometheus-operator 方式下的prometheus的配置文件
    fq简单介绍prometheus-operator中的每个PrometheusCRD资源,Operator都会以StatefulSet形式在相同的命名空间下部署对应配置的资源,PrometheusPod的配置是通过一个包含Prometheus配置的名为的Secret对象声明挂载的。该CRD根据标签选择来指定部署的Prometheus实......
  • CentOS7 报错 ”Repository base is listed more than once in the configuration...
    CentOS7在使用yum时出现以下错误:RepositorybaseislistedmorethanonceintheconfigurationRepositoryupdatesislistedmorethanonceintheconfigurationRepositoryextrasislistedmorethanonceintheconfigurationRepositorycentosplusislistedmore......
  • CommandNotFoundError: Your shell has not been properly configured to use ‘conda
    问题描述使用condaactivate激活虚拟环境时报错:condaactivatevirtual_env提示内容CommandNotFoundError:Yourshellhasnotbeenproperlyconfiguredtouse'condaactivate'.Toinitializeyourshell,run$condainit<SHELL_NAME>Currentlysupp......
  • 关于命令行修改K8s内Prometheus配置文件参数
    #登录master节点操作1、进入prometheus介质目录:[root@k8s-master01]$cd/yang/operator/operator-0.7/manifests/prometheus2、备份prometheus配置文件[root@k8s-master01]$cpprometheus-prometheus.yamlprometheus-prometheus.yaml.202312153、编辑prometheus配置文件修......
  • FastAPI学习-29 log_config 设置 logger 日志格式
    前言FastAPI服务是通过uvicorn来提供的,日志都是uvicorn里配置的。官方文档地址:https://www.uvicorn.org/settings/#logginguvicorn的logging日志我们可以通过uvicorn.run()方式启动服务uvicorn.run("example:app",port=5000,reload=True,access_log=False)于......
  • Idea SpringBoot 子模块 加载不到该子模块根目录config下面的配置文件
    IdeaSpringBoot子模块加载不到该子模块根目录config下面的配置文件importorg.mybatis.spring.annotation.MapperScan;importorg.springframework.boot.SpringApplication;importorg.springframework.boot.autoconfigure.SpringBootApplication;importorg.springframew......
  • Django 源码(三)-应用 & 中间件 & 配置文件
    Django源码(三)-应用&中间件&配置文件本部分主要是在为程序启动时候加载应用以及中间件的信息;1.应用的加载在程序启动的部分,我们分析到程序执行的时候都会执行一个setup()函数,相关的内容可以看之前的章节的部分;defsetup(set_prefix=True):"""Configurethes......
  • 第六天:bash shell的配置文件
    一、按生效范围划分两类 1、全局配置:针对所有用户皆有效/etc/profile/etc/profile.d/*.sh/etc/bashrc2、个人配置:只针对特定用户有效 ~/.bash_profile~/.bashrc二、shell登录两种方式分类 1、交互式登录直接通过终端输入账号密......
  • 系统无ifconfig,一条命令获取本机ip并将其赋值给指定变量来使用
    在Linux系统中,准确地获取本机IP信息是非常有用的。在写bashshell脚本事经常会用到IP,这时就需要我们使用一些办法获取本机IP并赋值给变量来使用。最近刚刚完成grep及sed的摸索、研究,本着学以致用的原则,用一条命令获取本机IP并将其赋值给某个变量来使用。由于CentOS7.2中已经不再集......