Custom format_tags

Sep 6, 2015 at 9:17 AM
I am trying to modify the Format drop-down (format_tags) to use some project specific formatting. I cannot figure out how to add a custom tag, I can only get the defaults to work.

In the CKEditor Provider Config Manager, the default config items are hard-coded (p, h1, h2...). If I add my config to an existing field (for example, if I put it in format_h6 then it will work when I select h6 from the format dropdown.

What I cannot seem to do is add a new item to the format_tags list, even if I create an appropriate entry in the CKEditorProviderSettings table. For example, I'd like to add an entry "ContactBtn" which applies class attributes to a div. So I did the following:

1) Create a table entry for: DNNCKP#0#Format_contactbtn
2) Set its value: { element: 'div', attributes: { 'class': 'button lightbox-52115929118152' } }
3) Update the format_tags entry to include this format: p;h1;h2;h3;pre;address;div;contactbtn

Which does not work. If I remove the references to ContactBtn and put those values in an existing format_<tag>, it works.

How can you customize the format_tags?

Thank you.
Oct 18, 2015 at 1:31 AM
Oct 28, 2015 at 8:46 PM

I did, yes. But I must have missed something. I will try again. Thanks.