Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
editor_ckeditor_widgets
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
editor_ckeditor_widgets
Commits
6f21c689
Commit
6f21c689
authored
2 months ago
by
Devin Carlson
Browse files
Options
Downloads
Patches
Plain Diff
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
!1
Issue #3493161: Verify that CKEditor 4 is available before attaching syntax highlighting
Pipeline
#365350
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
editor_ckeditor_widgets.module
+2
-3
2 additions, 3 deletions
editor_ckeditor_widgets.module
with
2 additions
and
3 deletions
editor_ckeditor_widgets.module
+
2
−
3
View file @
6f21c689
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment