Provide actionValue variable to actions fired by EditTextWidget (#6145)

* feat: provide actionValue variable to actions fired by EditTextWidget

* also extend CodeMirror engine to set actionValue variable when invoking actions
This commit is contained in:
Saq Imtiaz
2021-10-28 20:15:50 +02:00
committed by GitHub
parent d3522854b6
commit b5c81d2721
4 changed files with 4 additions and 4 deletions

View File

@@ -122,7 +122,7 @@ function CodeMirrorEngine(options) {
this.cm.on("change",function() {
self.widget.saveChanges(self.getText());
if(self.widget.editInputActions) {
self.widget.invokeActionString(self.widget.editInputActions);
self.widget.invokeActionString(self.widget.editInputActions,this,event,{actionValue: this.getText()});
}
});