arillo/silverstripe-xhtmleditor-config

XHTMLEditorConfig

安装: 131

依赖: 0

建议者: 0

安全性: 0

星标: 2

关注者: 4

分支: 1

开放问题: 0

类型:silverstripe-module

0.0.2 2017-05-23 09:00 UTC

This package is auto-updated.

Last update: 2024-09-09 02:13:57 UTC


README

一个小的模块,通过yml文件配置CMS HTMLEditor。

只需在您的mysite/_config文件夹中创建一个htmleditor.yml文件,并配置可能的选择。

参考这个示例文件

---
Name: mysite-editor
After:
  - 'xhtmleditor-config'
---
XHTMLEditorConfig:
  identifier: cms
  buttons:
    1: 
      - undo
      - redo
      - separator
      - cut
      - copy
      - paste
      - pastetext
      - separator
      - bold
      - italic
      - underline
      - strikethrough
      - separator
      - justifyleft
      - justifycenter
      - justifyright
      - justifyfull
      - formatselect
      - separator
      - bullist
      - numlist
      - outdent
      - indent
      - blockquote
      - hr
    2:
    3:
  options:
    paste_text_sticky_default: true

@待办

  • 验证按钮和选项