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
Rostislav Wolny
b8396140ac
Remove paragraph renderer
...
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
fd04141141
Use Text renderer also for paragraph block
...
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
d49f3e8988
Rename Heading renderer to Text renderer
...
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
c52937202e
Polish Heading block renderer code
...
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
057de1d2e7
Use a first tag from heading block rendered content
...
The block has only one HTML element, so we don't need to explicitly ask for a heading.
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
9873634f1e
Use inherit value as a fix for font-size defined via clamp
...
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
d56cf24a7c
Fix regular expression for removing padding in the heading block
...
The problem was that \padding.*:\ would eat much more than just one padding rule.
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
15e0c3fa4d
Use WP's style engine for formatting style arrays to string
...
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Mike Jolley
e1f5e882fe
Prevent double registration of block types
2024-04-10 11:42:50 +02:00
Mike Jolley
6f5de68a9f
initialize block types controller elsewhere
2024-04-10 11:42:50 +02:00
Mike Jolley
c267b82035
Remove renderCallback
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
Mike Jolley
37e901c809
Restore content renderer styles to fix remaining tests
2024-04-10 11:42:50 +02:00
Mike Jolley
02b8a4ad78
Force content render
2024-04-10 11:42:50 +02:00
Mike Jolley
0b2e88df9a
Outlook spacing
2024-04-10 11:42:50 +02:00
Mike Jolley
2060b68583
Handle spacing using consistent spacing element
2024-04-10 11:42:50 +02:00
Mike Jolley
f79f3a00c4
Remove kses
2024-04-10 11:42:50 +02:00
Mike Jolley
e0d27db790
Remove top level processor in favour of wrapping column in template, fix column padding
2024-04-10 11:42:50 +02:00
Mike Jolley
05124fc6c1
Remove redundant use statement
2024-03-25 12:11:11 +01:00
Mike Jolley
2c98fc4323
Code styling
2024-03-25 12:11:11 +01:00
Mike Jolley
a5f177c7e4
Spacing
2024-03-25 12:11:11 +01:00
Mike Jolley
fc384424ac
Update tests to reflect markup changes
2024-03-25 12:11:11 +01:00
Mike Jolley
2f888daca5
Fix rendering and include shared logic
2024-03-25 12:11:11 +01:00