|
|
@@ -133,7 +133,10 @@ export default class TextWatcher {
|
|
|
this.hasMatch = textHasMatch;
|
|
|
|
|
|
if ( textHasMatch ) {
|
|
|
- const eventData = Object.assign( data, { text, range } );
|
|
|
+ // If text matches, get the transformation from the match and then pass it to the
|
|
|
+ // event data object.
|
|
|
+ const transformation = textHasMatch.transformation;
|
|
|
+ const eventData = Object.assign( data, { transformation, text, range } );
|
|
|
|
|
|
/**
|
|
|
* Fired whenever the text watcher found a match for data changes.
|