Token replacement CKEditor plugin

Published on Wed, 08/12/2015 - 20:46

In my current project, I needed a plugin for CKEditor that allowed users to add tokens for replacement in the WYSIWYG editor. The placeholder plugin was close, but there was no way to configure the token string (it uses [[token]] and I needed ${token}), and it would require that users type in the token, rather than selecting from a predetermined list.

So I wrote a new token plugin that is configurable in both aspects. The GitHub page is here if you find any issues with it. Hope it's helpful for others!