Add default styles for newly created forms

[MAILPOET-2455]
This commit is contained in:
Rostislav Wolny
2019-11-21 15:42:21 +01:00
committed by Jack Kitterhing
parent 4712056c65
commit e53c58201b

View File

@@ -47,6 +47,7 @@ class FormEditor {
];
if ($this->features_controller->isSupported(FeaturesController::NEW_FORM_EDITOR)) {
$data['form']['styles'] = FormRenderer::getStyles($form);
$this->page_renderer->displayPage('form/editor.html', $data);
} else {
$this->page_renderer->displayPage('form/editor_legacy.html', $data);