Commit Graph

361 Commits

Author SHA1 Message Date
Mike Jolley
004c31e5d7 Remove extra padding and empty rendered paragraphs 2024-05-01 11:15:27 +01:00
Mike Jolley
7874b12bf6 Remove invalid bg property from json 2024-05-01 11:15:27 +01:00
Mike Jolley
4a0f46e3d4 Hide templates from site editor 2024-05-01 11:15:27 +01:00
Mike Jolley
76f6e7cdbd Render using custom template on preview 2024-05-01 11:15:27 +01:00
Mike Jolley
07c974e7c7 Added the ability to edit the general-email template in site editor 2024-05-01 11:15:27 +01:00
Mike Jolley
00e158108f Assign email-general template in editor 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
1220641417 Adjust font size tests 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
67cbfe9656 Type panels fully functional, with previews 2024-04-22 12:43:17 +01:00
Mike Jolley
a8e9b167cb Work on tool panels 2024-04-22 12:43:17 +01:00
Mike Jolley
35b3cd4737 Panel Navigation 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
47a4871600 Remove unused SettingsController::convertStylesToString method
[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
fa73d97ae9 Mock getEmailStyles 2024-04-10 11:42:50 +02:00
Mike Jolley
26246cd202 Return Meta robots + subject 2024-04-10 11:42:50 +02:00
Mike Jolley
ab893062ae Default colors 2024-04-10 11:42:50 +02:00
Mike Jolley
3ec36064ab Fix undefined spacing warning 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
1e499a0ce7 Fix trailing comma 2024-04-10 11:42:50 +02:00
Mike Jolley
a697b32e0e Exclude from phpstan 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
b4acac7c52 Refactor renderers to use templates 2024-04-10 11:42:50 +02:00
Mike Jolley
888be622e2 Add main template canvas and consolodate styles 2024-04-10 11:42:50 +02:00