fabianmichael / kirby-markdown-field

Super-sophisticated markdown editor for Kirby 3, community built.
Other
160 stars 14 forks source link

Disabled is not disabled #137

Closed medienbaecker closed 2 years ago

medienbaecker commented 2 years ago

While the field gets the correct styling you can still edit text. Interestingly enough it does not save the content though.

disabled

fabianmichael commented 2 years ago

@medienbaecker I tried to solve this, but I could not figure out how to prevent focus on the editor in disabled state … maybe you got an idea? I won’t spend any more time on this for now, though I agree that this feature should work.

medienbaecker commented 2 years ago

I don't think it's too bad as it doesn't save the content. Do you think the stable release of CodeMirror 6 will help with stuff like this? I'll try to dig into the code once I have a few free minutes.

fabianmichael commented 2 years ago

@medienbaecker I tried with the stable release and updated all dependencies this morning, did the necessary refactoring etc. but still no luck. But I’m probably missing out something, maybe it has something to do with "Facets", some concept used for defining extensions for CM.