AlessioGr / payload-plugin-lexical

Extends payload CMS with Meta's lexical RichText editor - a much more advanced and customizable richtext editor
MIT License
144 stars 6 forks source link

required: true doesn't seem to work & cms thinks content has changed #14

Closed johannesschaffer closed 1 year ago

johannesschaffer commented 1 year ago

Even if the editor is empty, still passes and lets me publish. Additionally, on a blank page (without having writting anything inside the editor): If I reload, Payload warns me that content is gonna be lost. That's very likely also why it passes the "required: true" with nothing in the editor

AlessioGr commented 1 year ago

Just fixed that in v0.1.2!

johannesschaffer commented 1 year ago

Still doesn't quite work. As far as I can tell the "required" works now (however without showing where the error happend - you probably missed the error popup in your custom field), but a blank editor field added to a collection still makes payload think there is unsaved content (for comparison, adding an empty "text" field works like intended)