Commit 0e2f3da3 authored by Jacob Rockowitz's avatar Jacob Rockowitz
Browse files

Issue #3322552: CKEditor 5 support

parent b911b79a
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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;
}
+7 −0
Original line number Diff line number Diff line
@@ -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.
/* ************************************************************************** */
+1 −0
Original line number Diff line number Diff line
@@ -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;
    }

+6 −0
Original line number Diff line number Diff line
@@ -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: