Remove the toolbar in ckeditor history mode + history configurable

This commit is contained in:
yflory
2017-04-24 11:41:00 +02:00
parent 92ea03d7d9
commit 5fc2e4cf71
4 changed files with 17 additions and 19 deletions

View File

@@ -632,11 +632,7 @@ define([
histConfig.onRender = function (val) {
if (typeof val === "undefined") { return; }
try {
applyHjson(val || '');
/*var hjson = JSON.parse(val || '{}'); // TODO
var remoteDoc = hjson.content;
editor.setValue(remoteDoc || ''); // TODO
editor.save(); // TODO*/
applyHjson(val || '["BODY",{},[]]');
} catch (e) {
// Probably a parse error
console.error(e);