Skip to content
Snippets Groups Projects
Commit fb641b09 authored by Frode Petterson's avatar Frode Petterson
Browse files

Add back code highlighter fix that got replaced

parent 51bc6525
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment