Board Thread:JS Development/@comment-34804319-20190131192854

Would it be possible to create a script to automatically replace a string of text with a template each time a page is edited?

For example, our wiki uses a template to style headings (to keep things consistent with our theme), however most editors will not realise this and will more than likely attempt to create a header using the normal convention of "=" signs.

If a user edits and saves a page with some text between "=" signs, can a script be written to immediately replace that string with the template? 