【问题标题】:Tinymce-rails proper tinymce.yml configuration for second toolbar?Tinymce-rails 为第二个工具栏配置正确的 tinymce.yml?
【发布时间】:2015-10-05 18:27:27
【问题描述】:

仅与单个工具栏完美配合,但是当我尝试使用 Rails 4.2 中 yaml 文件中文档中的工具栏配置模式时,编辑器完全消失了。这是我的 yaml 文件,我做错了什么?

menubar: false
paste_merge_formats: true
paste_retain_style_properties: all
toolbar:
  - formatselect | fontselect | fontsizeselect | bold | italic | underline | strikethrough | alignleft | aligncenter | alignjustify | alignright
toolbar2:
  - bullist | numlist | outdent | indent | blockquote | forecolor | backcolor | undo | redo | link | unlink | preview | hr | searchreplace
plugins:
  - link
  - paste
  - importcss
  - autolink
  - lists
  - wordcount
  - colorpicker
  - hr
  - preview
  - searchreplace
  - textcolor

【问题讨论】:

    标签: ruby-on-rails ruby tinymce-4


    【解决方案1】:

    如果我理解正确并且您希望toolbar2 中的项目显示为格式选项,那么您只需删除toolbar2 声明,您将在菜单中获得toolbar2 格式选项。 像这样:

    toolbar:
      - formatselect | fontselect | fontsizeselect | bold | italic | underline | strikethrough | alignleft | aligncenter | alignjustify | alignright
      - bullist | numlist | outdent | indent | blockquote | forecolor | backcolor | undo | redo | link | unlink | preview | hr | searchreplace
    plugins:
            ...
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-26
      • 1970-01-01
      • 1970-01-01
      • 2017-12-01
      • 2012-11-23
      相关资源
      最近更新 更多