Closed teichsta closed 1 year ago
can i help with any further details @fabianmichael ?
@teichsta TL;DR: Feel free to submit a PR, that updates the editor HTML manually, if this is urgent.
Long story: CodeMirror has seen quite a few releases that have probably changes quite a bit as well. The editor plugin currently uses 6.1.4 and CM is currently at 6.9.2 (and this bug has probably been tackled in the meantime). I will need some time for updating all the packages, which probably involves quite a bit of rewriting the editor itself. But since I am currently stuck in my daily work. I cannot give you any ETA on this. It will probably take a few months at best, until I’ll find the time for doing this huge update.
this seems to be a kirby bug (see https://forum.getkirby.com/t/how-to-disable-all-blocks-in-a-blocks-field/28081). In my case i use the MarkdownBlock
which doesn't get disabled through its surrounding BlocksField
.
disabled
is set totrue
and field appears to be disabled:nevertheless the content is still editable:
and model is set
dirty
. It boils down to the fact thatcontenteditable
attribute is still set totrue
When changing this attribute to
false
(manually) the editor isn't editable anymore (as expected).Any idea how to fix this @fabianmichael ?