Hi, is there any way to extend the rich text editor and add your own shortcuts. Like the B shortcut will surround the selection with strong tags. I'd like to create my own shortcut that will surround a selection with a span and a given class.
I tried the same thing in 9 but it throws an error in the backoffice,
An error occurred
Cannot create instance of type 'System.String' because it is missing a public parameterless constructor.
Extend Rich Text Editor
Hi, is there any way to extend the rich text editor and add your own shortcuts. Like the B shortcut will surround the selection with
strong
tags. I'd like to create my own shortcut that will surround a selection with aspan
and a given class.I'm also struggling with this, in Umbraco 8 I was using the style_formats custom config but have so far failed to get it to work in Umbraco 9 :(
This is an example of what I had in 8
I tried the same thing in 9 but it throws an error in the backoffice, An error occurred Cannot create instance of type 'System.String' because it is missing a public parameterless constructor.
Hi, I didn't know this existed. But I found this answer: https://our.umbraco.com/forum/umbraco-9/106837-tinymceconfig-where-to-find-it-in-umbraco-9#comment-332731
Ha Ha, just found that myself :D
That is going to look very nasty and unmaintainable for a large config section like I have.
Do you perhaps have the link on the tinyMce documentation on how this works and how I can configure my own tags in there?
What exactly do you need to do?
Hi Roy,
Based on your inital question, you can do the following
This will give you an entry under 'Formats' that will wrap your selection in a span with the class red
is working on a reply...