Skip to content

How can I detect input validation errors? #631

Answered by bago
CaptainHypertext asked this question in Q&A
Discussion options

You must be logged in to vote

I'm sorry there is no such feature in Mosaico.
You can replace the editing widget and implement your own logic in the widget.

If you want to try writing your own widgets you will have to put your hands in the code. You can read something here:
https://github.com/voidlabs/mosaico/wiki/Mosaico-Plugins
and you can see the current url widget here:
https://github.com/voidlabs/mosaico/blob/master/src/js/converter/editor.js#L99

This way you can only deal differently with the widget/validation when that property is edited. There is no provinsion in the Mosaico architecture to do model validation before saving and I don't think it would be a good UX option.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by CaptainHypertext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #387 on April 27, 2022 15:26.