Add proper body class for the email editor to mark it a block editor

This class is needed so that some CSS rules (e.g. white background, hidden footer)
are applied for WP admin.
[MAILPOET-5854]
This commit is contained in:
Rostislav Wolny
2024-01-26 11:23:13 +01:00
committed by Jan Lysý
parent 414e540f33
commit cc8bb10d8b
2 changed files with 9 additions and 2 deletions

View File

@@ -69,6 +69,6 @@ class EmailEditor {
// Enqueue media library scripts
$this->wp->wpEnqueueMedia();
echo '<div id="mailpoet-email-editor"></div>';
echo '<div id="mailpoet-email-editor" class="block-editor"></div>';
}
}