mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-29 07:36:42 +00:00
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:
@@ -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()});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user