+function editorsetup() {
+
+CKEDITOR.disableAutoInline = true;
+
CKEDITOR.plugins.add('inlinesave', {
init: function(editor) {
editor.addCommand( 'inlinesave', {
};
});
- CKEDITOR.disableAutoInline = true;
-
-// add edit link to menu
var pagebody = document.getElementsByClassName('static')[0];
if (pagebody) {
+ // add edit link to menu
var editlink = document.querySelector('a[href="#edit"]');
if (editlink)
editlink.onclick = function (e) {
}
}
+}
+
+document.addEventListener('DOMContentLoaded', function (e) {
+ var editorinc = document.createElement('script');
+ editorinc.addEventListener('load', editorsetup);
+ editorinc.src = ckesrc;
+ document.getElementsByTagName('head')[0].appendChild(editorinc);
+});