Answer the question
In order to leave comments, you need to log in
How to disable edit mode in ckeditor 4?
How to initialize ckeditor 4 so that all its plugins are initialized but the toolbar and editing mode were not available
tried to do something like
CKEDITOR.disableAutoInline = false;
var editor = CKEDITOR.inline(elm[0], {
extraAllowedContent: '*',
toolbarStartupExpanded : false,
toolbarCanCollapse : false,
startupFocus: false,
});
editor.on('instanceReady', function (ev) {
var ed = ev.editor;
ed.setReadOnly(true);
editor.removeListener();
});
editor.on('focus', function (event) {
return false;
});
editor.on('blur', function () {
return false;
});
editor.on('focus', function (event) {
return false;
});
Answer the question
In order to leave comments, you need to log in
In general, I just rendered html and connected the plugin with the code separately<script>hljs.initHighlightingOnLoad();</script>
Good afternoon!
Skeditor is a text editor. Why do you need an editor at all if you are going to use it as a renderer? Why not just load a page whose content you say you've already saved? But, if you have some kind of intricate functionality planned, here the solution seems to be described.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question