Commit Graph

201 Commits

Author SHA1 Message Date
Jan Lysý
2f0cec5fde Replace WP Rich Text package by our build with version 7.14.0
[MAILPOET-6387]
2024-12-18 09:54:39 +01:00
Rostislav Wolny
7f61415a39 Speed up email editor start by preloading REST API requests
[MAILPOET-6335]
2024-12-17 10:36:39 +01:00
Rostislav Wolny
c908cabcf6 Fix saving styles to save only user-edited props
There was a typo in StylesColorPanel property, and we were passing incorrect values.
StylesColorPanel.value expects user set values
StylesColorPanel.inheritedValue expects merged styles
See b66f9ff095/packages/edit-site/src/components/global-styles/screen-colors.js (L23-L28)
[MAILPOET-6335]
2024-12-17 10:36:39 +01:00
Rostislav Wolny
fdc0d15b63 Load user styles in the email editor properly
[MAILPOET-6335]
2024-12-17 10:36:39 +01:00
Pavel Dohnal
21dde5362a Fix copy as reported by Translation team 2024-12-06 11:19:42 +01:00
Jan Lysý
f95688ca70 Add new class Personalization_Tag
The new class contains all necessary data to replace token with personalized value.
[MAILPOET-6328]
2024-11-28 15:01:04 +01:00
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
Oluwaseun Olorunsola
02d424d8a1 Fix NpsPoll CSS style issues
MAILPOET-6315
2024-11-26 13:50:53 +01:00
Oluwaseun Olorunsola
d8a1459bf5 Add missing variables to EditorPageRenderer.php
MAILPOET-6315
2024-11-26 13:50:53 +01:00
Oluwaseun Olorunsola
b9b503889d Add NpsPoll feature support for Email editor
MAILPOET-6315
2024-11-26 13:50:53 +01:00
Rostislav Wolny
e74e1ef2a2 Register email patterns directly in plugin
[MAILPOET-6243]
2024-11-22 08:45:46 +01:00
Rostislav Wolny
5885077838 Register only email content email pattern category
As for now, pattern categories are hardcoded in the engine.
[MAILPOET-6243]
2024-11-22 08:45:46 +01:00
Rostislav Wolny
977876920b Update pattern hook names to align with other filters in editor
[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
Rostislav Wolny
2409b5c8a1 Add default patterns into the MailPoet plugin integration
[MAILPOET-6243]
2024-11-22 08:45:46 +01:00
Oluwaseun Olorunsola
6fb8b6df2d Fix phpstan lint errors
MAILPOET-6092
2024-11-18 15:28:31 +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
Oluwaseun Olorunsola
e6d607028c Move powered by mailpoet block back to the main mailpoet assets folder
MAILPOET-6215
2024-11-11 11:53:49 +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
ad9800ebff Fix PHP warning for justifyContent 2024-05-24 12:22:23 +02:00
Rostislav Wolny
b510e07942 Fix button styles are applied
[MAILPOET-5641]
2024-05-22 11:36:09 +02:00
Mike Jolley
c3dcc13f2c Fix renderer styles 2024-05-22 11:36:09 +02:00
Mike Jolley
d20b4bb6c9 Add group support w/ support for contentSize 2024-05-17 11:26:44 +02:00
Mike Jolley
736068cf57 Audit missing escaping during block rendering 2024-05-15 13:27:52 +02:00
Mike Jolley
af1faea7ce Add Powered By MailPoet Block 2024-05-07 12:08:48 +01:00
Mike Jolley
627003dbcb Remove email content block 2024-05-07 12:08:48 +01:00
Mike Jolley
143e1f9e30 Fix empty columns margin render 2024-05-01 11:15:27 +01:00
Mike Jolley
d39e946e82 Consistent gaps for header/content 2024-05-01 11:15:27 +01:00
Mike Jolley
004c31e5d7 Remove extra padding and empty rendered paragraphs 2024-05-01 11:15:27 +01:00
Mike Jolley
a1bd0db1ea Allow deleted_at to be null 2024-04-30 14:12:08 +02:00
Mike Jolley
0833f8e75e Remove deleted_at field when restoring newsletter 2024-04-30 14:12:08 +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
1e5ec13403 Ensure typography has value 2024-04-22 12:43:17 +01:00
Mike Jolley
587a59e842 remove inherited size from buttons 2024-04-22 12:43:17 +01:00
Mike Jolley
7ac23bcfdb Remove default sizing 2024-04-22 12:43:17 +01:00
Mike Jolley
af92fd9af3 Fix styles in preview 2024-04-22 12:43:17 +01:00
Mike Jolley
a8e9b167cb Work on tool panels 2024-04-22 12:43:17 +01:00
Jan Lysý
78160ae329 Update testing email template
[MAILPOET-5971]
2024-04-22 10:32:47 +02: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
Rostislav Wolny
4f7268e364 Use sprintf for inserting styles into text block HTML template
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
13c73b781b Remove unnecessary table wrap for outlook for text blocks
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00