mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-12 07:46:06 +00:00
Pass reference to widget to CodeMirror (#5790)
This commit is contained in:
@@ -109,6 +109,7 @@ function CodeMirrorEngine(options) {
|
||||
if(this.widget.editTabIndex) {
|
||||
config["tabindex"] = this.widget.editTabIndex;
|
||||
}
|
||||
config.editWidget = this.widget;
|
||||
// Create the CodeMirror instance
|
||||
this.cm = window.CodeMirror(function(cmDomNode) {
|
||||
// Note that this is a synchronous callback that is called before the constructor returns
|
||||
|
Reference in New Issue
Block a user