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]
This commit is contained in:
committed by
Jan Lysý
parent
3de159dd03
commit
5eb9551d28
@ -102,7 +102,8 @@ class SettingsController {
|
||||
|
||||
$settings = array_merge($coreDefaultSettings, self::DEFAULT_SETTINGS);
|
||||
$settings['allowedBlockTypes'] = self::ALLOWED_BLOCK_TYPES;
|
||||
$settings['defaultEditorStyles'] = [[ 'css' => $this->getEmailContentStyles() ]];
|
||||
$settings['styles'] = [['css' => wp_get_global_stylesheet(['base-layout-styles'])]];
|
||||
|
||||
$settings['__experimentalFeatures'] = $coreSettings;
|
||||
|
||||
return $settings;
|
||||
|
Reference in New Issue
Block a user