Jan Lysý
7d3ba0ae20
Register subscriber Personalization Tags in gutenberg editor
...
This commit adds a new class which register MailPoet subscribers tags for the new email editor.
[MAILPOET-6328]
2024-11-28 15:01:04 +01:00
Rostislav Wolny
e74e1ef2a2
Register email patterns directly in plugin
...
[MAILPOET-6243]
2024-11-22 08:45:46 +01:00
Rostislav Wolny
a3f292f74e
Register default patterns to the email editor via hooks
...
[MAILPOET-6243]
2024-11-22 08:45:46 +01:00
Oluwaseun Olorunsola
2216c065b2
Extend core email editor preview email functionality
...
With this commit, we override the core email editor send preview mail functionality with MailPoet version of the feature.
MAILPOET-6092
2024-11-18 15:28:31 +01:00
Rostislav Wolny
6f53c159eb
Simplify check for replacing editor
...
We always want to use the block email editor for mailpoet_email CPT.
We don't need to check if it is allowed for the CPT.
[MAILPOET-6090]
2024-11-15 17:16:21 +02:00
Rostislav Wolny
b124ffe596
Improve the comment about checking the editor page
...
[MAILPOET-6090]
2024-11-15 17:16:21 +02:00
Rostislav Wolny
33e828f2ed
Remove the custom editor page
...
[MAILPOET-6090]
2024-11-15 17:16:21 +02:00
Rostislav Wolny
cb78d98ad8
Improve detection that we are on the email editor page to cover also post editor
...
This is needed so that we can register some early hooks.
[MAILPOET-6090]
2024-11-15 17:16:21 +02:00
Rostislav Wolny
c71949e326
Render custom editor for mailpoet_email post types
...
[MAILPOET-6090]
2024-11-15 17:16:21 +02:00
Jan Lysý
d0c1ad4aba
Move email editor integration tests
...
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
ea71b6c967
Move EmailEditor PHP files into a packages directory
...
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Rostislav Wolny
e59096fbd1
Load assets for iframe editor
...
In order to provide styles for the iframe, we need to pass those
styles/script through the editor settings. The post and site editors use
get_block_editor_settings for that.
We currently build editor settings ourselves so I used the same function
_wp_get_iframed_editor_assets which is used internally in the get_block_editor_settings.
We also grab the assets early in the initialization phase, because _wp_get_iframed_editor_assets
reads from global $wp_styles and $wp_scripts and fetching the scripts later may include unwanted scripts.
[MAILPOET-6079]
2024-05-29 10:46:02 +02:00
Mike Jolley
f6a793d2e8
Sync post and newsletter
2024-04-30 14:12:08 +02:00
Mike Jolley
d90e4dc962
Fix element styles and scrollbars
2024-04-22 12:43:17 +01:00
Mike Jolley
7ac23bcfdb
Remove default sizing
2024-04-22 12:43:17 +01:00
Jan Lysý
52c6f698c9
Add WP CLI command for creating testing email template
...
[MAILPOET-5971]
2024-04-22 10:32:47 +02:00
Jan Lysý
26896d3cb7
Move email default content to NewsletterSaveController
...
To avoid circular reference I moved default content to NewsletterSaveController.
[MAILPOET-5971]
2024-04-22 10:32:47 +02:00
Mike Jolley
6f5de68a9f
initialize block types controller elsewhere
2024-04-10 11:42:50 +02:00
Mike Jolley
3f2b96f3a6
Introduce block to handle email content
2024-04-10 11:42:50 +02:00
Jan Lysý
4dbac6ef62
Move email styles merge to engine
...
[MAILPOET-5640]
2024-03-22 17:19:44 +01:00
Jan Lysý
cae2ad6dc7
Move meta registration to the engine
...
As a part of the refactoring is making the meta field available via API.
[MAILPOET-5640]
2024-03-22 17:19:44 +01:00
Jan Lysý
be4f517d39
Add theme metadata to mailpoet_email post
...
[MAILPOET-5640]
2024-03-22 17:19:44 +01:00
Mike Jolley
035f3097ca
Move image to CDN
2024-03-12 11:29:04 +00:00
Mike Jolley
3ad932a17e
Define default content blocks
2024-03-12 11:29:04 +00:00
Rostislav Wolny
b35e0af691
Remove old code that was handling creating emails for the new editor
...
The code is no longer needed because the new emails are created via API.
[MAILPOET-5810]
2024-01-14 19:43:26 +05:00
Rostislav Wolny
d54847ce83
Refactor construction of NewsletterEntity when creating an email in the new editor
...
When we create a new email in the new editor we ensure there is
also an associated NewsletterEntity.
This commit improves this functionality by replacing custom code with
NewsletterSaveController, which ensures that the sender name and address are set.
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Rostislav Wolny
8be034822e
Add minimalistic WpPostEntity for fetching basic post data for listing
...
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Rostislav Wolny
e9a5658be5
Cleanup post editor approach code
...
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Jan Lysý
eace314009
Use wpLocalizeScript instead of wpAddInlineScript in Email editor
...
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
Jan Lysý
e5e04e63e2
Add sending email after click on button
...
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
Jan Lysý
de66b3fea1
Add JS variables for email editor
...
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
Jan Lysý
226317f55c
Fix creating newsletter in EmailEditor
...
After removing temporary fix a hash was missing for newsletter created via EmailEditor.php
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
Jan Jakes
49dd627a76
Update references to renamed files
...
[MAILPOET-4938]
2023-10-02 13:05:20 +02:00
Rostislav Wolny
46d8cb38a0
Apply layout styles defined in StylesController and also to editor
...
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
77eab47357
Refactor email styles from constant to service and move to core
...
I envision the StylesController as the source of information about
styles settings in both the editor and renderer.
We will add email styles settings and these will be accessed in PHP via this service.
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
d594bb4739
Add simple columns rendering
...
Add rendering of columns with fixed width computed by number of columns.
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
69a87e8146
Apply editor content styles in the email renderer
...
Add proof of concept for applying additional CSS in renderer
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
3c7a9f0a48
Strip theme CSS from the editor and add custom basic styles
...
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
b70ad064c7
Refactor initialization of the email editor
...
This changes how the editor is initialized. The integration initialization class
doesn't get the engine class anymore, but integration is initialized via
mailpoet_email_editor_initialized action triggered from the engine.
This allows multiple integrations to hook into the engine.
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
68e833f80c
Refactor email editor PHP and JS code to follow automations namespacing
...
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00