Pass reference to widget to CodeMirror (#5790)

This commit is contained in:
Saq Imtiaz 2021-06-14 17:46:39 +02:00 committed by GitHub
parent 8f9e8c1dee
commit 06318b7617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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