Skip to content
Snippets Groups Projects
Commit 40e3b36e authored by Jacob Rockowitz's avatar Jacob Rockowitz
Browse files

Issue #3479443: Remove legacy ckeditor from codebase

parent b9a92224
No related branches found
No related tags found
No related merge requests found
......@@ -467,8 +467,11 @@ function _webform_update_elements_clear_properties_recursive(array &$element, ar
/**
* Update the Webform module's default hidden text format and editor.
*
* Determines if the CKEditor 5 or 4 module installed and imports the
* Determines if the CKEditor 5 module installed and imports the
* appropriate configuration file.
*
* The below approach and code can be updated to support ckeditor6 when it
* is available and required.
*/
function _webform_update_html_editor() {
// Make sure the Webform module is installed, since we do call this function
......@@ -493,9 +496,6 @@ function _webform_update_html_editor() {
if (\Drupal::moduleHandler()->moduleExists('ckeditor5')) {
$ckeditor_version = 'ckeditor5';
}
elseif (\Drupal::moduleHandler()->moduleExists('ckeditor')) {
$ckeditor_version = 'ckeditor';
}
else {
$ckeditor_version = NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment