arillo/silverstripe-xhtmleditor-config

XHTMLEditorConfig

0.0.2 2017-05-23 09:00 UTC

This package is auto-updated.

Last update: 2024-04-09 01:18:38 UTC


README

Small module to configure the CMS HTMLEditor via a yml file.

Just create a htmleditor.yml file in your mysite/_config folder and configure the possible options.

See this example file as a reference:

---
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

@TODO:

  • validate buttons and options