Commit Graph

73 Commits

Author SHA1 Message Date
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ý
fc7e06730b Migrate email editor dom document helper class 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ý
df6f7198a6 Migrate email editor flex-layout-renderer class 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ý
b6103b4581 Rename files in email editor package by WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +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
5044f8f276 Add border support for paragraph and heading blocks
[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
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
7b6bf1f4b4 Remove srcset from images
The srcset breaks the rendering of images in some clients (observed on iOS and MacOS clients in Email on Acid tester).

[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
a40eb3e554 Respect layout content size set in theme.json in the renderer
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Jan Lysý
7a793f11f1 Remove redundant methods from email editor IntegrationTester
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
8dc9c28fdf Fix namespace in integration tests
This commit also removed the redundant directory EmailEditor from integration tests directory.
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
99a6541ffb Fix namespace in unit tests
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
4424a33624 Add Container class
This class is used as DI Container for easier injecting classes in integration tests.
It can be also reused during a standalone usage.
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
1af3c09422 Bootstrap email-editor integration tests
I tried to minimize the code repetition.
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
d38e6bb1b9 Bootstrap email-editor unit tests
I also replaced using verify function by asserts, which will be removed in the higher version of phpunit.
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
d0c1ad4aba Move email editor integration tests
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
0860f7c45f Move email editor unit tests
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00