mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-10-09 17:41:42 +00:00
Fix problem with codemirror editor and missing tiddlers
This commit is contained in:
@@ -71,6 +71,7 @@ EditCodeMirrorWidget.prototype.render = function(parent,nextSibling) {
|
|||||||
// Get the configuration options for the CodeMirror object
|
// Get the configuration options for the CodeMirror object
|
||||||
var config = $tw.wiki.getTiddlerData(CODEMIRROR_OPTIONS,{}).configuration || {},
|
var config = $tw.wiki.getTiddlerData(CODEMIRROR_OPTIONS,{}).configuration || {},
|
||||||
editInfo = this.getEditInfo();
|
editInfo = this.getEditInfo();
|
||||||
|
console.log("editInfo",editInfo);
|
||||||
if(!("lineWrapping" in config)) {
|
if(!("lineWrapping" in config)) {
|
||||||
config.lineWrapping = true;
|
config.lineWrapping = true;
|
||||||
}
|
}
|
||||||
@@ -148,7 +149,7 @@ EditCodeMirrorWidget.prototype.getEditInfo = function() {
|
|||||||
if(this.editType) {
|
if(this.editType) {
|
||||||
type = this.editType;
|
type = this.editType;
|
||||||
}
|
}
|
||||||
return {value: value, type: type, update: update};
|
return {value: value || "", type: type, update: update};
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user