mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-19 20:40: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) {
|
if(this.widget.editTabIndex) {
|
||||||
config["tabindex"] = this.widget.editTabIndex;
|
config["tabindex"] = this.widget.editTabIndex;
|
||||||
}
|
}
|
||||||
|
config.editWidget = this.widget;
|
||||||
// Create the CodeMirror instance
|
// Create the CodeMirror instance
|
||||||
this.cm = window.CodeMirror(function(cmDomNode) {
|
this.cm = window.CodeMirror(function(cmDomNode) {
|
||||||
// Note that this is a synchronous callback that is called before the constructor returns
|
// Note that this is a synchronous callback that is called before the constructor returns
|
||||||
|
Loading…
x
Reference in New Issue
Block a user