getkirby / editor

A new type of WYSIWYG editor for Kirby
https://getkirby.com
205 stars 28 forks source link

Limit block number #226

Closed isaactopo closed 4 years ago

isaactopo commented 4 years ago

It would be interesting to be able to limit the number of blocks to add. For example, for use only one paragraph block. And exclude the dropdown “insert below” and “Duplicate”. With this you can use the field as a textarea with the WYSIWYG view. It makes sense?

texnixe commented 4 years ago

For a single paragraph with inline styles, you can use the inline option:

fields: 
  text: 
    type: editor
    inline: true

It allows inline styles, but you cannot add any other blocks.

isaactopo commented 4 years ago

For a single paragraph with inline styles, you can use the inline option:

fields: 
  text: 
    type: editor
    inline: true

It allows inline styles, but you cannot add any other blocks.

Oh, that's perfect, thanks @texnixe I haven't seen that in the documentation.