Textbox.io 2.x Documentation : editor.macros

editor.macros is a grouping of methods related to content macros for a Textbox.io editor instance. 

Macros allow your application to be aware of content entered into Textbox.io. Macros listen for patterns in user entered text, and then take action when constraints are met that result in a match. Potential matches are evaluated each time the user presses the space or return keys.

Methods

editor.macros.addSimpleMacro()Adds a simple content macro to an editor instance.
editor.macros.removeMacro()Removes a macro from an editor instance.

See Also

Macros: Writing Content-Aware Code