mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-17 03:20:02 +00:00
Pass reference to widget to CodeMirror (#5790)
This commit is contained in:
parent
8f9e8c1dee
commit
06318b7617
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user