1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-28 00:03:16 +00:00

Fix problem with codemirror editor and missing tiddlers

This commit is contained in:
Jermolene 2014-10-30 12:28:26 +00:00
parent f069046f5b
commit 90096cbd36

View File

@ -71,6 +71,7 @@ EditCodeMirrorWidget.prototype.render = function(parent,nextSibling) {
// Get the configuration options for the CodeMirror object
var config = $tw.wiki.getTiddlerData(CODEMIRROR_OPTIONS,{}).configuration || {},
editInfo = this.getEditInfo();
console.log("editInfo",editInfo);
if(!("lineWrapping" in config)) {
config.lineWrapping = true;
}
@ -148,7 +149,7 @@ EditCodeMirrorWidget.prototype.getEditInfo = function() {
if(this.editType) {
type = this.editType;
}
return {value: value, type: type, update: update};
return {value: value || "", type: type, update: update};
};
/*