Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello dear community,
is it possible to install a specific plugin for the TinyMCE editor without creating a new plugin for a datatype in Umbraco? So, can I just "attach" such a TinyMCE Plugin in the Umbraco backend without, of course, changing the Umbraco source code?
Thank you very much for your replies!
I create tinymce plugins using this as a simple example:
Add a folder (in my case "purchasebutton" in \umbraco\lib\tinymce
Create a file called index.js
// Exports the "purchasebutton" plugin for usage with module loaders
Then two files, plugin.js and plugin.min.js with that code from the gist. Change blockquote_cite to the name of your plugin in the gist.
Then in the /config/tinyMceConfig.config add the command under the nceCharMap and it should appear as an option in your Rich text editor data type (remember you have to allow it and also remember to do a hard, cache busting refresh in Umbraco).
This works for me but I think that gist is a bit old.
There's more detail (with a more modern example) here https://our.umbraco.com/Documentation/Reference/Config/tinyMceConfig/#common-custom-configuration-examples
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted