mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-04 04:43:52 +00:00
Fix problem with codemirror editor and missing tiddlers
This commit is contained in:
parent
f069046f5b
commit
90096cbd36
@ -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};
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user