Rostislav Wolny
91b8ed9dde
Fix displaying columns full width in the gmail app
...
The content wrapping table was not set width 100%.
However, the table is not needed since each column block adds its own table.
So removing the incorrect table fixes the issue.
[MAILPOET-5753]
2023-12-07 16:56:40 +01:00
Jan Lysý
7792331999
Add rendering improvements for Outlook
...
[MAILPOET-5705]
2023-11-27 12:54:30 +01:00
Jan Lysý
abf1ef9d7f
Implements image block renderer
...
[MAILPOET-5705]
2023-11-27 12:54:30 +01:00
Jan Lysý
328fcfa260
Move method for composing styles to SettingsController
...
To avoid repetition I decided to move this method to better place.
[MAILPOET-5705]
2023-11-27 12:54:30 +01:00
Jan Lysý
8bab89b4e8
Add default image block renderer
...
[MAILPOET-5705]
2023-11-27 12:54:30 +01:00
Jan Lysý
477044b462
Add small improvements to the renderer readme
...
[MAILPOET-5705]
2023-11-27 12:54:30 +01:00
Oluwaseun Olorunsola
0d771a7fc5
Add support for creating styles from block attributes e.g., text alignment styles
...
MAILPOET-5643
2023-11-17 09:49:06 +01:00
Oluwaseun Olorunsola
667da710b1
Merge updates in trunk
...
MAILPOET-5643
2023-11-17 09:49:06 +01:00
Oluwaseun Olorunsola
d05b38bf89
Fix failing test
...
MAILPOET-5643
2023-11-17 09:49:06 +01:00
Oluwaseun Olorunsola
1528b2e9ec
Add Base CSS resets
...
MAILPOET-5643
2023-11-17 09:49:06 +01:00
Oluwaseun Olorunsola
1a6caac290
Add heading block support to email editor
...
MAILPOET-5643
2023-11-17 09:49:06 +01:00
Rostislav Wolny
5eb9551d28
Load and apply layout styles in the email editor
...
This commit enables us to load styles for editor content.
The rules are prefixed by .editor-styles-wrapper class
[MAILPOET-5715]
2023-11-16 13:51:24 +01:00
Jan Lysý
5ed3656032
Add vertical-alignment style to core/column renderer
...
[MAILPOET-5690]
2023-11-13 06:58:52 +01:00
Jan Lysý
db13c4ba25
Unify wrapping method name
...
[MAILPOET-5645]
2023-11-11 09:38:35 +04:00
Jan Lysý
f96b02146c
Refactor paragraph renderer to table
...
Because we are facing issues with Outlook, we decided to use table design when it's possible
[MAILPOET-5645]
2023-11-11 09:38:35 +04:00
Jan Lysý
38c099be20
Reset heading margins in emails
...
[MAILPOET-5645]
2023-11-11 09:38:35 +04:00
Jan Lysý
2ca611bacb
Reset default margin and set default padding-left
...
Because we want to have the best user experience for most of email client,
we reset the margin and set padding-left for the same look.
[MAILPOET-5645]
2023-11-11 09:38:35 +04:00
Jan Lysý
60fd4b6c8a
Add List block renderer
...
[MAILPOET-5645]
2023-11-11 09:38:35 +04:00
Jan Lysý
1b73e0f4db
Allow core/list, core/list-item blocks in email editor
...
[MAILPOET-5645]
2023-11-11 09:38:35 +04:00
Rostislav Wolny
219a12578a
Simplify API for registering email block renderers
...
This commit makes the cleanup of filters for block rendering in emails automatic.
[MAILPOET-5645]
2023-11-10 08:44:08 +01:00
Rostislav Wolny
4705079877
Add a simple guide for adding a new block
...
[MAILPOET-5645]
2023-11-10 08:44:08 +01:00
Jan Lysý
5644cab9e3
Refactor BlocksRegistry to pass dependencies as an argument
...
For better extensibility of 3rd party developers, I refactored to pass Settings Controller as an argument.
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
6e1a08d60b
Fix typo in a method name
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
a0b57b3f3f
Unify columns height
...
Because we prefer the identical height of core/column with different content lengths,
I used a wrapper layer that helps to solve it.
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
5800830d71
Improve columns width calculation
...
Because there exist more variants when the column width is not defined, we needed to improve this behavior.
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
2ce6fd8688
Remove BlocksRenderer and fix tests
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
c2cb18ef37
Use render_block_* hooks for rendering changed blocks
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
4f9e3723c9
Implement rendering column, columns and paragraph
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
0ac72d43e6
Merge StylesController to SettingsController
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
1626cf2ad9
Add TypographyPreprocessor
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
5946884cb2
Refactor email content styles from string to array
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
1250d81670
Refactor BlocksWidth preprocessor to set string including units
...
I added pixels to calculated width for easier work with it in block rendering.
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
2b69acf0d5
Add preprocessor for calculating block width
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
62ea18f8be
Fix email template header
...
Missing head tag caused an incorrect rendering in Gmail apps on mobiles.
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
fe5eabfe49
Add Preprocessor for removing unwanted blocks
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
c1768fd0b2
Refactor Preprocessor to more classes
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
125b0dfe82
Add email layout padding
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Rostislav Wolny
9f0e015f44
Load core editor setting as the base settings for the email editor
...
[MAILPOET-5660]
2023-10-26 10:43:00 +02:00
Rostislav Wolny
399ed61503
Introduce SettingsController for managing editor settings
...
[MAILPOET-5637]
2023-10-17 16:06:06 +02: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ý
5fce014a60
Fix email dataSchema in EmailApiController
...
[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 Lysý
65b6a129ae
Add email preview URL to EmailApiController response
...
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
Rostislav Wolny
ca40766c2f
Allow null for WP_Block_Editor_Context in email editor callbacks
...
There are cases when the second parameter is null.
[MAILPOET-5624]
2023-10-09 11:33:11 +02:00
Jan Jakes
49dd627a76
Update references to renamed files
...
[MAILPOET-4938]
2023-10-02 13:05:20 +02:00
Jan Lysý
51223ac3c2
Add saving and getting subject and preheader to EmailApiController
...
[MAILPOET-5562]
2023-10-02 10:28:26 +02:00
Rostislav Wolny
398a313d54
Pass styles controller into block renders
...
When rendering blocks, we need to access global styles settings.
This will be done via the StylesController
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00