Loading css/webform.element.html_editor.css +2 −4 Original line number Diff line number Diff line Loading @@ -5,8 +5,6 @@ * @see /webform/test_element_html_editor */ /* Add html tag to make this selector more specific */ html .cke_reset_all .cke_dialog_body { border-radius: 5px; background-color: #f5f5f2; .form-type-webform-html-editor .cke_bottom { display: none; } includes/webform.editor.inc +7 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,13 @@ function webform_filter_format_load($entities) { } } /** * Implements hook_editor_js_settings_alter(). */ function webform_editor_js_settings_alter(array &$settings) { $settings['editor']['formats'][WebformHtmlEditor::DEFAULT_FILTER_FORMAT]['editorSettings']['autoGrow_minHeight'] = '120'; } /* ************************************************************************** */ // Webform entity hooks. /* ************************************************************************** */ Loading src/Element/WebformHtmlEditor.php +1 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,7 @@ class WebformHtmlEditor extends FormElement implements TrustedCallbackInterface '#suffix' => '</div>', ]; WebformElementHelper::fixStatesWrapper($element); $element['#attached']['library'][] = 'webform/webform.element.html_editor'; return $element; } Loading webform.libraries.yml +6 −0 Original line number Diff line number Diff line Loading @@ -721,6 +721,12 @@ webform.element.help: - core/once - webform/libraries.tippyjs webform.element.html_editor: version: VERSION css: component: css/webform.element.html_editor.css: {} webform.element.horizontal_rule: version: VERSION css: Loading Loading
css/webform.element.html_editor.css +2 −4 Original line number Diff line number Diff line Loading @@ -5,8 +5,6 @@ * @see /webform/test_element_html_editor */ /* Add html tag to make this selector more specific */ html .cke_reset_all .cke_dialog_body { border-radius: 5px; background-color: #f5f5f2; .form-type-webform-html-editor .cke_bottom { display: none; }
includes/webform.editor.inc +7 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,13 @@ function webform_filter_format_load($entities) { } } /** * Implements hook_editor_js_settings_alter(). */ function webform_editor_js_settings_alter(array &$settings) { $settings['editor']['formats'][WebformHtmlEditor::DEFAULT_FILTER_FORMAT]['editorSettings']['autoGrow_minHeight'] = '120'; } /* ************************************************************************** */ // Webform entity hooks. /* ************************************************************************** */ Loading
src/Element/WebformHtmlEditor.php +1 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,7 @@ class WebformHtmlEditor extends FormElement implements TrustedCallbackInterface '#suffix' => '</div>', ]; WebformElementHelper::fixStatesWrapper($element); $element['#attached']['library'][] = 'webform/webform.element.html_editor'; return $element; } Loading
webform.libraries.yml +6 −0 Original line number Diff line number Diff line Loading @@ -721,6 +721,12 @@ webform.element.help: - core/once - webform/libraries.tippyjs webform.element.html_editor: version: VERSION css: component: css/webform.element.html_editor.css: {} webform.element.horizontal_rule: version: VERSION css: Loading