Hi,
i am looking for a way to pass a default css-class for tables made in TinyMCE.
I have been looking in the module-settings, the javascript-files and in the website of tinymce.
I have cmsms 2.2.15 with tinymce-module 3.3.2
regards,
Jan
TinyMCE give table a css-class
Re: TinyMCE give table a css-class
can't you use a class/id for the container of the user-added content?
Example:
Styling:
jQuery selector:
Example:
Code: Select all
<div id="user-content">{content}</div>Code: Select all
#user-content table {
...css...
}Code: Select all
jQuery("#user-content table")....Re: TinyMCE give table a css-class
Hi Velden,
Thanks.
i might solve the problem this way, using an extra container div for the table.
I use W3.CSS that brings its own classes.
The user is not able to manipulate the HTML. Maybe your idea combined with a snippet will works.
I will try that.
Regards,
Jan
Thanks.
i might solve the problem this way, using an extra container div for the table.
I use W3.CSS that brings its own classes.
The user is not able to manipulate the HTML. Maybe your idea combined with a snippet will works.
I will try that.
Regards,
Jan


