Commit Graph

8 Commits

Author SHA1 Message Date
92e9642e1f Fix and workaround woocommerce/dependency-group errors
[MAILPOET-6438]
2025-01-17 11:35:49 +01:00
afb183bd71 Fetch template content for validation properly
When editing the template, the content property might be a function or empty, and
we need to build content by serializing blocks.
[MAILPOET-6393]
2025-01-13 11:34:21 +01:00
79ec5a5ffd Move content validation hook call to header
It was originally in the send button, and in case the send button is
hidden, the hook is not called, and the inner validation which
is subscribed to changes has outdated data.
[MAILPOET-6393]
2025-01-13 11:34:21 +01:00
59b90d2836 Ensure that correct template data are used for validation
The difference between getCurrentTemplate and getEditedPostTemplate,
which is also internally used in getTemplateContent
is that getCurrentTemplate always returns the template associated with the email,
but getEditedPostTemplate returns the template associated with the currently edited post
and this doesn't give us correct data in the template mode because in the template mode
the edited post is the template.
[MAILPOET-6393]
2025-01-13 11:34:21 +01:00
6c005c96d7 Improve look of auto inserted unsubscribe and manage links
[MAILPOET-6393]
2025-01-13 11:34:21 +01:00
c05a2edfba Update insert link callback to insert links with new tags
[MAILPOET-6393]
2025-01-13 11:34:21 +01:00
80f35169a2 Update email content validation check to look for new tag
[MAILPOET-6393]
2025-01-13 11:34:21 +01:00
1c3ea9cd0a Move email editor components out of the engine folder
MAILPOET-6215
2024-11-11 11:53:49 +02:00