Oluwaseun Olorunsola
e5498b6baf
Remove unnecessary use of mailpoet_data
...
MAILPOET-6431
2025-02-13 10:27:43 +01:00
Oluwaseun Olorunsola
43990d9e8b
Remove mailpoet_data
use from send email preview feature
...
MAILPOET-6431
2025-02-13 10:27:43 +01:00
Jan Lysý
1727a87e1b
Remove exceptions file from composer.json in email editor package
...
[MAILPOET-6469]
2025-02-12 08:33:26 +01:00
Jan Lysý
3b9db4f98b
Fix unit test for Template_Registry
...
[MAILPOET-6453]
2025-02-11 10:52:43 +01:00
Jan Lysý
79eca8133a
Add unit test for Template_Registry
...
[MAILPOET-6453]
2025-02-11 10:52:43 +01:00
Jan Lysý
4834863505
Modify get_post_types to return post_types by the template slug
...
Because we want to avoid dependency on the exact template plugin_uri,
we use Templates_Registry to check if template is registered in the email package.
[MAILPOET-6453]
2025-02-11 10:52:43 +01:00
Jan Lysý
50e986715e
Refactor template registration to use Template_Registry
...
[MAILPOET-6453]
2025-02-11 10:52:43 +01:00
Jan Lysý
9abf223005
Add new class Templates_Registry
...
[MAILPOET-6453]
2025-02-11 10:52:43 +01:00
Oluwaseun Olorunsola
c866950d54
Remove done item from todo
...
MAILPOET-6432
2025-02-07 15:30:20 +01:00
Oluwaseun Olorunsola
2deceb3360
Update filter name to better fit the purpose
...
MAILPOET-6460
2025-02-05 13:27:17 +01:00
Oluwaseun Olorunsola
e058fbd608
Update docs
...
MAILPOET-6460
2025-02-05 13:27:17 +01:00
Oluwaseun Olorunsola
40ad420cfb
Fix Email previews not working for Posts with sent
status
...
MAILPOET-6460
2025-02-05 13:27:17 +01:00
Oluwaseun Olorunsola
dc8699cff4
Remove return type hint for load_email_preview_template
function which affects some platforms
2025-02-05 12:07:51 +03:00
Oluwaseun Olorunsola
da00efc1dc
Fix Uncaught TypeError due to a type hint which affects some platforms
2025-02-05 12:07:51 +03:00
Jan Lysý
ad52971692
Moving fetching iframed assets
...
Because we called the function for getting editor iframed assets in init hook, it could cause that some properties were not set yet.
2025-02-03 11:05:59 +01:00
Oluwaseun Olorunsola
f1abe65e8e
Remove Todo for preview url
...
MAILPOET-6430
2025-01-30 13:12:33 +01:00
Oluwaseun Olorunsola
1cb5eda659
Migrate variable from email editor core to MailPoet integration.
...
The information is already available within the MailPoet integration scope, moving the variable declaration closer.
MAILPOET-6430
2025-01-30 13:12:33 +01:00
Oluwaseun Olorunsola
e7169304e0
The email editor now supports both editing and creating context.
...
Extenders may now define and use any string as the post-type and creating new email post using the WP admin panel is now possible (provided the extender returns a valid response for the `mailpoet_is_email_editor_page` filter)
MAILPOET-6430
2025-01-30 13:12:33 +01:00
Oluwaseun Olorunsola
00545b3e10
Update Readme and remove done items from the Todo
...
MAILPOET-6430
2025-01-30 13:12:33 +01:00
Oluwaseun Olorunsola
6a012a8dd6
Fetch postId from the backend and remove reliance on getting the post id from the URL
...
MAILPOET-6430
2025-01-30 13:12:33 +01:00
Oluwaseun Olorunsola
a49b978050
Remove usage of hardcoded mailpoet_email
string from the JS package
...
MAILPOET-6430
2025-01-30 13:12:33 +01:00
Pavel Dohnal
1afc0d6260
Use html2text in renderer
...
[MAILPOET-6428]
2025-01-29 16:34:20 +01:00
Pavel Dohnal
0aba89b89c
Use html2text in the renderer
...
[MAILPOET-6428]
2025-01-29 16:34:20 +01:00
Pavel Dohnal
849568ac2f
Remove finished todo item
...
[MAILPOET-6428]
2025-01-29 16:34:20 +01:00
Pavel Dohnal
a0ac8862ef
Install html2text to the email editor package
...
[MAILPOET-6428]
2025-01-29 16:34:20 +01:00
Pavel Dohnal
ee6662571f
Use css inliner from the integration in content renderer
...
[MAILPOET-6428]
2025-01-29 16:34:20 +01:00
Pavel Dohnal
6127dda6bb
Use css inliner from the integration in renderer
...
[MAILPOET-6428]
2025-01-29 16:34:20 +01:00
Pavel Dohnal
ddf6570f50
Add CSS Inliner interface matching Emogrifier required methods
...
[MAILPOET-6428]
2025-01-29 16:34:20 +01:00
Pavel Dohnal
fbe79ae570
Fix meta tag in tests to match production code
...
[MAILPOET-6428]
2025-01-29 16:34:20 +01:00
Oluwaseun Olorunsola
f20237ab1c
Update and fix failing tests
...
MAILPOET-6323
2025-01-29 08:42:48 +01:00
Oluwaseun Olorunsola
bd266ed403
Add personalization tags support for email-post preview and send test mails
...
MAILPOET-6323
2025-01-29 08:42:48 +01:00
Oluwaseun Olorunsola
26ea3a0d04
Render email content in the editor and pass rendered HTML output to the emails custom post-type template
...
MAILPOET-6323
2025-01-29 08:42:48 +01:00
Oluwaseun Olorunsola
a28ff7da50
Refactor Send_Preview_Email
to add support for reusability
...
MAILPOET-6323
2025-01-29 08:42:48 +01:00
Oluwaseun Olorunsola
ecb040c4a4
Add basic support for email custom post-type post-template.
...
The template will be used when previewing email editor posts
MAILPOET-6323
2025-01-29 08:42:48 +01:00
Rostislav Wolny
dadf76c519
Ensure we preserve post types in response eventually added by other plugins
...
[MAILPOET-6445]
2025-01-27 15:24:56 +01:00
Rostislav Wolny
14e5a82a49
Fix condition for adding post_types to API response for templates
...
The wrong condition was causing we added the data to more templates.
They were then displayed in the select template modal.
[MAILPOET-6445]
2025-01-27 15:24:56 +01:00
Pavel Dohnal
74f2281ff0
Remove item from the readme
...
[MAILPOET-6429]
2025-01-27 13:55:23 +01:00
Jan Lysý
2070b502ad
Fix type in Initializer::allow_styles()
...
[MAILPOET-6426]
2025-01-17 13:15:53 +01:00
Jan Lysý
05bf20ec20
Update strict spacing condition
...
The more strict condition does not work properly for the group block, and the default column patterns were broken.
[MAILPOET-6364]
2025-01-13 15:35:17 +01:00
Rostislav Wolny
a8a412b405
Add Todo for content validation
...
[MAILPOET-6393]
2025-01-13 11:34:21 +01:00
Oluwaseun Olorunsola
78a632d1bc
Ensure we only register block template when required
...
MAILPOET-6366
2025-01-10 18:39:26 +01:00
Rostislav Wolny
735baa2e73
Remove the Gutenberg version check from editor dependencies
...
MailPoet itself requires 6.6 to activate, so the oldest Gutenberg version we could get is 19.6, which is the first that allows WP 6.6 and could be active together with MailPoet. So, we are safe to remove the check for the Gutenberg version for now.
[MAILPOET-6367]
2025-01-09 19:31:49 +01:00
Rostislav Wolny
0cb66ecc40
Update the dependency check logic and the message
...
We actually need WP 6.7 and above, no matter what Gutenberg version
is installed. This commit updates the check logic and the warning
message to match this requirement.
[MAILPOET-6367]
2025-01-09 19:31:49 +01:00
Rostislav Wolny
37ceec2277
Fix the Gutenberg version check to use the correct version
...
[MAILPOET-6367]
2025-01-09 19:31:49 +01:00
Rostislav Wolny
dd2c88dfbe
Add service for checking editor dependencies
...
[MAILPOET-6367]
2025-01-09 19:31:49 +01:00
Jan Lysý
5decd55bf7
Improve CSS selectors for spacing inside columns and group blocks
...
[MAILPOET-6364]
2025-01-09 15:35:59 +01:00
Jan Lysý
780c72d092
Remove default align center from group block
...
Because the group block has deactivated layout settings in the email editor. It is not possible to configure content alignment.
The default value center could break blocks inside the group.
[MAILPOET-6412]
2025-01-09 15:32:54 +01:00
Jan Lysý
e429bd99b1
Update styles for mobile preview
...
I removed some deprecated styles and updated the style affecting images in mobile preview.
[MAILPOET-6368]
2025-01-08 11:12:09 +01:00
Rostislav Wolny
74c52597c5
Remove CSS for classic themes from email editor iframe styles
...
This removes classic.min.css and theme.min.css. Both are loaded only
when a classic theme is active and add additional paddings and margins
that are not reflected in the email renderer.
[MAILPOET-6390]
2025-01-06 16:52:17 +01:00
Jan Lysý
e7d015895a
Add support for replacing Personalization tags in links
...
[MAILPOET-6394]
2025-01-06 15:46:22 +01:00