I am creating a site using drupal that is using an existing set of css files shared with several of our other sites. In the page editor, we are using CKeditor and I have noticed that when a user creates a table in Ckeditor it needs to be wrapped with a div set to our table class, for the styling to work properly. What is the best way for me to configure that? Should I have the user create the div, then create the table within that div, or can I setup an easier method for the user. Can I edit the table plugin to have that div created around the table?
Tue, 01/10/2012 - 14:13
#1
Re: Automatically wrapping the table in a div
first of all write me what module with CKEditor do you use in your drupal ? What version of this module and drupal do you use ? Please also write your theme name in Drupal.
Re: Automatically wrapping the table in a div
I am using Drupal 7.9 with the CKEditor module version 7.x-1.6. The theme is a custom theme that I have built from scratch.
Thanks!
Jon
Re: Automatically wrapping the table in a div
Re: Automatically wrapping the table in a div
Re: Automatically wrapping the table in a div
Please check tutorials how to create plugin for CKEditor: http://docs.cksource.com/CKEditor_3.x/Howto/Plugins. Just use standard plugin as reference.