This option enables you to specify a list of classes to present in the
table options dialog box. This is useful if you want users to assign
predefined classes to table elements.
This seems to be just what I need to allow my editors to apply bootstrap formatting to a whole table.
I added a custom config key to the tinyMceConfig.config file like this:
Owing to a slight peculiarity with the way the configuration is evaluated you need to format the customConfig node as json that can be parsed by JSON.parse. To follow through the tinymce stock example, you need to format it as such (note specifically the use of quotes to delimit both key and value):
tinymce config table_class_list
Hi,
While reading the tinymce documentation (https://www.tinymce.com/docs/plugins/table/) I found a mention of a setting called tableclasslist
This seems to be just what I need to allow my editors to apply bootstrap formatting to a whole table.
I added a custom config key to the tinyMceConfig.config file like this:
This causes the Class dropdown to appear in the table properties dialog box but there are no entries in the list.
Has anyone ever tried to use this functionality and has a working config they could share?
Thanks
Ver
Any luck on this? I wonder if you have to tie it to the theme somehow like some of the other settings.
Maybe?
Owing to a slight peculiarity with the way the configuration is evaluated you need to format the customConfig node as json that can be parsed by JSON.parse. To follow through the tinymce stock example, you need to format it as such (note specifically the use of quotes to delimit both key and value):
Thanks Tim that worked a treat!
Just in case any else needs this, this is how I set up mine:
Has anyone tried this recently in Umbraco 7.6.x? I'm getting the long empty list despite formatting for JSON.
I've upgraded my project to 7.6.3 and this still works. You could try posting your config here see if anyone can spot any issues?
Hi Veronica Just wondering was this all that was needed to get the class attribute to show up ? Just cant get it working :-(
Just in case anybody stumbles upon this - this works
is working on a reply...