【问题标题】:TinyMCE Version 3.X - How to add a Color Highlighter in its toolbar?TinyMCE 版本 3.X - 如何在其工具栏中添加颜色荧光笔?
【发布时间】:2016-10-26 06:10:17
【问题描述】:

我想向 TinyMCE 工具栏添加颜色荧光笔。

下面是我的工具栏选项代码:

toolbar: "insertfile undo redo | bold italic |  underline | alignleft aligncenter alignright alignjustify | strikethrough | superscript | subscript |  code | bullist | numlist outdent indent | link  image | fontselect | forecolor | forecolorpicker"

下面是我的插件代码:

 plugins: ["paste autolink fullscreen table lists link image charmap print preview anchor code textcolor"],

使用上面的代码行,我确实看到了 Font ForeColor 选项。

我想在工具栏中添加一个“黄色”文本荧光笔。

请推荐!

提前致谢!!!

【问题讨论】:

    标签: javascript jquery tinymce color-picker


    【解决方案1】:

    尝试将此属性添加到您的 init json:

    textcolor_map:["FFFF00", "Yellow"]
    

    希望对你有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-07-20
      • 2014-10-11
      • 2013-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-25
      • 2011-06-13
      相关资源
      最近更新 更多