Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 890 Bytes

File metadata and controls

32 lines (25 loc) · 890 Bytes

This package adds a button to CKE5 toolbar that splits the current node after the current paragraph, and then allows to insert a new node in between. E.g. especially useful to insert images or headlines inside some text node. Works only on nodes inside ContentCollections (obviously).

Demo

Installation

  1. composer require 'psmb/splitadd'
  2. Enable splitNode button on node properties that should support it, e.g.:
'Neos.NodeTypes:TextMixin':
  properties:
    text:
      ui:
        inline:
          editorOptions:
            formatting:
              splitAdd: true

Note: when using neos/neos-ui older than 2.0, you need to switch to using CKeditor 5:

Neos:
  Neos:
    Ui:
      frontendConfiguration:
        defaultInlineEditor: 'ckeditor5'