mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-10 14:56:06 +00:00
Remove erroneous global wiki references
$tw.wiki is used as a global reference in the outer initialisation modules. It shouldn’t be used in widgets etc.
This commit is contained in:
@@ -59,7 +59,7 @@ EditTextWidget.prototype.postRender = function() {
|
||||
lineWrapping: true,
|
||||
lineNumbers: true
|
||||
},
|
||||
tid = $tw.wiki.getTiddler(this.editTitle);
|
||||
tid = this.wiki.getTiddler(this.editTitle);
|
||||
if(tid && tid.fields.type) {
|
||||
cm_opts.mode = tid.fields.type
|
||||
};
|
||||
|
Reference in New Issue
Block a user