Commit Graph

181 Commits

Author SHA1 Message Date
Jan Lysý
be63af8102 Migrate tests/_support folder to WordPress Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
113dbaae2d Change coding style in email editor tests to WordPress
This commit contains automated changes made with phpcbf command from CodeSniffer package.

[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
8d7f26c42d Add CodeSniffer config file based on WordPress standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
ef8f122bb7 Migrate email editor Validator to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
fc7e06730b Migrate email editor dom document helper class to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
eccf8ce0a2 Migrate email editor core initializer class to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
d82f8ea9fa Migrate email editor Core block render classes to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
e850028a1c Migrate email editor cdn-asset-url class to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
5ad66a7db6 Migrate last email editor files from engine to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
9653fc756b Migrate email editor contentRenderer classes from to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
6e2a2d4b7e Migrate email editor preprocess files to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
ef6ecb8159 Migrate email editor postprocessor files to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
df6f7198a6 Migrate email editor flex-layout-renderer class to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
f5e54abecf Migrate email editor templates class to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
a31857ffee Migrate email editor template-preview class to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
0a105dbe81 Migrate email editor utils class to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
f050020d67 Migrate email editor classes Engine\Patterns directory to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
062f504e14 Migrate email editor email-editor to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
37b3cfbbc2 Migrate email editor email-api-controller to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
734b70489d Migrate email editor email-styles-schema to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
c83ec3c8d7 Migrate email editor settings-controller to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
fba5482cd2 Migrate email editor theme-controller to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
ecbd2f150d Migrate email editor Contaienr to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
554adccce3 Change coding style in email editor package to WordPress
This commit contains automated changes made with phpcbf command from CodeSniffer package.
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
b6103b4581 Rename files in email editor package by WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Oluwaseun Olorunsola
4f3209b670 Remove unnecessary renderer block
We don't need a special renderer for the spacer block as the fallback renderer can handle its functionality

MAILPOET-6237
2024-11-05 19:35:34 +01:00
Oluwaseun Olorunsola
ad58f6213e Add Spacer block support
MAILPOET-6237
2024-11-05 19:35:34 +01:00
Oluwaseun Olorunsola
7b750ece51 Update readme documentations
MAILPOET-6255
2024-11-05 09:09:44 +01:00
Rostislav Wolny
e77f075d75 Fix border-radius support in the group block.
[MAILPOET-6280]
2024-11-04 11:30:35 +01:00
Rostislav Wolny
2d0621d386 Render caption html conditionally
In case the image has no caption we don't need to render the markup wrapping the caption.
[MAILPOET-6280]
2024-11-04 11:30:35 +01:00
Rostislav Wolny
9829c96caa Add border support to the image renderer
This commit fixes how the border is applied in an image block.
- the border is applied to the wrapping table cell instead of the image
- we need to move classes related to border styles to the cell so that related styles are inlined in the proper place
- the caption is put in an additional table so that it doesn't extend the border when it is longer than the image
- rounded image styles are now applied to the wrapper and the image
[MAILPOET-6280]
2024-11-04 11:30:35 +01:00
Rostislav Wolny
10ad46239d Fix border rendering on mobiles for columns
[MAILPOET-6280]
2024-11-04 11:30:35 +01:00
Rostislav Wolny
5044f8f276 Add border support for paragraph and heading blocks
[MAILPOET-6280]
2024-11-04 11:30:35 +01:00
Rostislav Wolny
b83ecbbe70 Disable margin globally
We don't support margin in the renderer.
[MAILPOET-6280]
2024-11-04 11:30:35 +01:00
Rostislav Wolny
3f6ca7517a Fix unit tests and potential ensure email_attrs being set
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
c2ef0ac2ea Remove EMAIL_WIDTH constant from SettingsController
Email width is set in theme JSON so this was a duplicity.
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
85da4d0659 Adjust renderer tests to cover styles added to wrapper
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
e3d5b7a7e0 Disable block gap rendering between root-level blocks.
Top level blocks are post content and header and footer wrapping blocks.
Disabling the gap between these blocks prevents rendering a gap between
post-content blocks and header and footer.
[MAILPOET-6088]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
4a04744d1c Use default layout in general template
The default layout disables align-full, which is now not supported.
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
77455c6e42 Use different patterns for the general email template and the rest
The general email template is a blank template without a header and footer.
This commit reintroduces the content pattern with a header and footer content
and uses it as the default for the general template.

[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
355c144dc9 Simplify the DefaultContent pattern
This removes the header and footer from the content pattern.
The header and footer should be part of the template
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
f842ed4b33 Remove old demo templates
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
2a251e70f7 Add a new template with more meaningful content
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
324fedecbf Get rid of duplicate CSS for template preview
We can reuse the same CSS we pass to editor
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
b6d75410cf Render proper content width in template previews
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
801f586b00 Prevent block gap for list item
The list item gets spacing via the fallback renderer.
To prevent this, I created a renderer that skips spacing.
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
af0b4f37bc Add class for detection of text blocks
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
95f7049bd9 Introduce file for sharing CSS for content between editor and renderer
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
b87eb3edd3 Remove unused CSS for alingfull for post content
The align full is currently disabled and the CSS was working only for the hardcoded value.
Probably a leftover from some testing
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
000bbd993b Move styles for content in email editor to one place
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00