Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
h5p-editor-php-library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
h5p-editor-php-library
Commits
fb641b09
Commit
fb641b09
authored
3 years ago
by
Frode Petterson
Browse files
Options
Downloads
Patches
Plain Diff
Add back code highlighter fix that got replaced
parent
51bc6525
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ckeditor/plugins/customCodeHighlighter/plugin.js
+5
-1
5 additions, 1 deletion
ckeditor/plugins/customCodeHighlighter/plugin.js
with
5 additions
and
1 deletion
ckeditor/plugins/customCodeHighlighter/plugin.js
+
5
−
1
View file @
fb641b09
...
...
@@ -35,7 +35,11 @@ CKEDITOR.plugins.add('customCodeHighlighter', {
},
highlighter
:
function
(
code
,
language
,
callback
)
{
// Here we are highlighting the code and returning it.
callback
(
code
);
/**
* Note: Since we're not adding any highlighting we have to
* encode the html so that the html is not being run.
*/
callback
(
CKEDITOR
.
tools
.
htmlEncode
(
code
));
}
});
editor
.
plugins
.
codesnippet
.
setHighlighter
(
highlighter
);
...
...
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