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
Jan Jakes
ab16f5be10
Remove ignores of WordPressDotOrg sniffs
...
[MAILPOET-6150]
2024-08-29 17:23:34 +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
Mike Jolley
fcb41a3a9b
Fix default font size for text
2024-05-24 12:22:23 +02:00
Mike Jolley
962e02ac30
Remove blockgap support
2024-05-23 10:58:49 +02:00
Mike Jolley
148b4bb6ac
Fix default line height
2024-05-23 10:58:49 +02:00
Mike Jolley
cbb90fbc3e
Fix image center alignment in editor
2024-05-23 10:58:49 +02:00
Mike Jolley
f8dd475de6
Skip gaps for buttons during render
2024-05-23 10:58:49 +02:00
Mike Jolley
61f7a9ab68
Force post content to prevent conflicts with woo
2024-05-22 11:36:09 +02:00
Mike Jolley
c3d0f23a3f
Fix text decoration
2024-05-22 11:36:09 +02:00
Rostislav Wolny
b510e07942
Fix button styles are applied
...
[MAILPOET-5641]
2024-05-22 11:36:09 +02:00
Rostislav Wolny
1fab8a31f3
Ensure the template theme is always an object.
...
Sending it as an empty array was causing that deepmerge in emailCss hook was returning null.
It was happening for the general-email template which has no theme file
[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
4100991354
Add link styles
2024-05-22 11:36:09 +02:00
Mike Jolley
3a8813cba7
Move maybeConvertPreset functionality to theme controller
2024-05-22 11:36:09 +02:00
Mike Jolley
dca470f216
strstr
2024-05-22 11:36:09 +02:00
Mike Jolley
18710cd259
Add color panel and handle rendering
2024-05-22 11:36:09 +02:00
Mike Jolley
e6f9564ef0
Fix compatibility with gutenberg plugin
2024-05-17 11:26:44 +02:00
Mike Jolley
48cc71f98f
Attempt to fix mock
2024-05-17 11:26:44 +02:00
Mike Jolley
5fac09e343
Remove default content size from template
2024-05-17 11:26:44 +02:00
Mike Jolley
d20b4bb6c9
Add group support w/ support for contentSize
2024-05-17 11:26:44 +02:00
Mike Jolley
4ee81fdd35
Apply border style when border color is defined
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
Oluwaseun Olorunsola
ca35cad824
Update documentation: remove unused hooks
...
MAILPOET-5597
2024-05-07 14:44:31 +02:00
Oluwaseun Olorunsola
b4c6f6af20
Added documentation about the email editor hooks.
...
MAILPOET-5597
2024-05-07 14:44:31 +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
abea414930
Remove footer logo from renderer
2024-05-07 12:08:48 +01:00
Mike Jolley
21441ecc4a
Update tests to match new template markup
2024-05-01 11:15:27 +01:00
Mike Jolley
143e1f9e30
Fix empty columns margin render
2024-05-01 11:15:27 +01:00
Mike Jolley
655302006e
Fix union type for php7
2024-05-01 11:15:27 +01:00
Rostislav Wolny
d0f75213fe
Slightly polished templates for the demo
...
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Rostislav Wolny
ac78e63db6
Fix alignment is not applied in the template preview
...
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Rostislav Wolny
a3575638b1
Make email-general template blank
...
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Rostislav Wolny
769cf307d2
Save email styles to template theme to template's post meta
...
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Mike Jolley
d39e946e82
Consistent gaps for header/content
2024-05-01 11:15:27 +01:00
Rostislav Wolny
275ad1cb7a
Add support for color.text in styles
...
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Mike Jolley
c321eb282e
Refactor renderers to use template JSON
2024-05-01 11:15:27 +01:00
Rostislav Wolny
73ba5923ef
Allow saving background.coloro to mailpoet_email_theme
...
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Rostislav Wolny
e8352d3dc8
Save template styles to mailpoet_email_theme
...
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Rostislav Wolny
f2333cddf5
Fix fetching styles for template previews
...
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Rostislav Wolny
abc9e58c68
Pass template style settings to the client in the template response
...
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Mike Jolley
118c0edb72
Create pattern for default content
2024-05-01 11:15:27 +01:00
Rostislav Wolny
efafa95ef7
Set the selected template to the post
...
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Rostislav Wolny
3a3ee4504a
Fetch templates data for select template modal via API
...
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Mike Jolley
8bc52a29b9
Inline styles using emogrifier
2024-05-01 11:15:27 +01:00
Mike Jolley
4b411af1ca
Update general template to enforce content width
2024-05-01 11:15:27 +01:00
Mike Jolley
21ae45acb6
Enqueue special block styles and inject using emogrifier
2024-05-01 11:15:27 +01:00