Skip to content
Snippets Groups Projects
Commit 6f21c689 authored by Devin Carlson's avatar Devin Carlson
Browse files

Issue #3493161: Verify that CKEditor 4 is available before attaching syntax highlighting

parent 69a05a11
No related branches found
No related tags found
1 merge request!1Issue #3493161: Verify that CKEditor 4 is available before attaching syntax highlighting
Pipeline #365350 skipped
......@@ -113,16 +113,15 @@ function editor_ckeditor_widgets_field_attach_view_alter(&$output, $context) {
foreach ($element['#items'] as $delta => $item) {
if (!empty($item['format'])) {
$format = filter_format_load($item['format']);
editor_format_ensure_additional_properties($format);
$editor = editor_load($format->editor);
// Skip this item if an editor is not enabled.
if (!$editor) {
if (!$editor || $editor != 'ckeditor') {
continue;
}
editor_format_ensure_additional_properties($format);
// Retrieve the enabled button.
$buttons = editor_ckeditor_get_enabled_buttons($format);
......
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