Hi @GoFaster,
The only place where you can add some JS code for the editor is tinymce.script.js file:
https://getpublii.com/dev/how-to-add-custom-config-or-js-for-post-editor/
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!