Add default styles for newly created forms
[MAILPOET-2455]
This commit is contained in:
committed by
Jack Kitterhing
parent
4712056c65
commit
e53c58201b
@@ -47,6 +47,7 @@ class FormEditor {
|
|||||||
];
|
];
|
||||||
|
|
||||||
if ($this->features_controller->isSupported(FeaturesController::NEW_FORM_EDITOR)) {
|
if ($this->features_controller->isSupported(FeaturesController::NEW_FORM_EDITOR)) {
|
||||||
|
$data['form']['styles'] = FormRenderer::getStyles($form);
|
||||||
$this->page_renderer->displayPage('form/editor.html', $data);
|
$this->page_renderer->displayPage('form/editor.html', $data);
|
||||||
} else {
|
} else {
|
||||||
$this->page_renderer->displayPage('form/editor_legacy.html', $data);
|
$this->page_renderer->displayPage('form/editor_legacy.html', $data);
|
||||||
|
Reference in New Issue
Block a user