Adapts https://github.com/wcoder/redactorjs-charmap/blob/master/redactor.charmap.js as Craft plugin