Create a simple content macro for an editor instance with
The simple replacement macro allows you to replace entered text when that text is surrounded by a startString and endString. The callback function can then operate on the matched string, including the startString and endString.
|startString||String||A string pattern to search for signifying the beginning of the macro replacement.|
|endString||String||A string pattern to search for signifying the end of the macro replacement.|
|callback||Function||A function that receives the complete matching string (including start and end) and returns the string to insert instead.|
A key that identifies this macro in this editor instance.