Reputation: 51
Using Umbraco version 7.3.3 assembly: 1.0.5813.17867
I have been asked to allow a further special character to be added to the built-in character map functionality of the TinyMCE rich text editor used by / in the Umbraco back office.
The new character that I want to allow in the table of special characters is:
black down-pointing triangle
, also known as
▼
and
▼
rendered as: ▼
This should be available for all rich text editors in the Umbraco installation, so a global approach is required.
I can find this file:
\umbraco\lib\tinymce\plugins\charmap\plugin.js
that defines all the allowed characters that can be inserted, but it's part of the Umbraco installation. I don't want to edit this file (or its minified sibling) as we'll lose this modification on an Umbraco upgrade.
I was hoping there would be something that could be done with the
/config/tinyMceConfig.config
file, but it would seem that because the charmap is a plugin to TinyMCE there are no configuration options for it in the global TinyMce config.
Any suggestions would be welcome :-)
Upvotes: 1
Views: 651
Reputation: 13736
TinyMCE supports adding items to the character map via the charmap_append
configuration option:
https://www.tinymce.com/docs/plugins/charmap/#charmap_append
Not sure how you would add this to Umbraco but the editor itself definitely supports adding things to the character map.
Upvotes: 1