editor icon indicating copy to clipboard operation
editor copied to clipboard

Enhancements: option parity with textarea field

Open nilshoerrmann opened this issue 5 years ago • 5 comments

When converting existing blueprints from textarea fields to the editor, I was expecting the plugin to respect the settings for files and uploads that are available for the textarea field: https://getkirby.com/docs/reference/panel/fields/textarea#file-upload-and-select

Comparing to other enhancements listed here on the issue tracker, I'd consider this one of the more important ones because it hinders us to update to the editor.

nilshoerrmann avatar Aug 12 '19 11:08 nilshoerrmann

Thinking about this, I'd say that for easing adoption of this plugin option parity with the textarea field (as far as possible and desireable) is very important.

nilshoerrmann avatar Aug 12 '19 12:08 nilshoerrmann

This includes things like minlength and maxlength (guessing this is complicated) and autofocus, default, counter, placeholder.

My guess is that disabled and required work out of the box – but I haven't tested yet.

nilshoerrmann avatar Aug 12 '19 12:08 nilshoerrmann

disabled: true technically works (no editing is possible but no visual difference)

translate: false technically works (no editing in secondary languages possible but no visual difference)

required: true doesn't work (the headline shows as required field but an empty editor can be saved - probably because of #80)

REHvision avatar Aug 28 '19 13:08 REHvision

  • [x] required: true
  • [x] disabled: true
  • [x] translate: false
  • [ ] minlength:
  • [ ] maxlength:
  • [x] autofocus: true
  • [x] default

bastianallgeier avatar Oct 25 '19 10:10 bastianallgeier

I think adjusting the available buttons (that appear when selecting text) and disabling them should also be possible.

silllli avatar Dec 05 '19 14:12 silllli