EasyAdminBundle
EasyAdminBundle copied to clipboard
disabled TextEditorField is not really disabled
Describe the bug Hello, when you add a disabled TextEditorField, the field is not disabled, however data modification are ignored, the WYSIWYG/Ckeditor is not really disabled (but the hidden textarea is disabled however).
A temporary CSS workaround is to trick the editor to limit user interaction and emulate a read only field:
textarea.ea-text-editor-content[disabled] + .ea-text-editor-wrapper {
pointer-events: none;
filter: contrast(75%);
opacity: 0.8;
user-select: none;
}
It is not perfect but better than nothing. And anyway the disabled level from symfony discards every modifications done to the field.