mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-06 17:23:11 -08:00
Fix problem with codemirror editor and missing tiddlers
This commit is contained in:
parent
f069046f5b
commit
90096cbd36
1 changed files with 2 additions and 1 deletions
|
|
@ -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};
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue