Cannot seem to get Insert Table to work in tinyMCE

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
tdgarner

Cannot seem to get Insert Table to work in tinyMCE

Post by tdgarner »

After much effort to finally get the table editing tools to appear in the toolbar, the only one that is active is the Insert Table tool (makes sense until a table exists).  I click that, and an editor window appears that asks for rows and columns, padding, borders, etc.  I put in some data, and click the Insert button.  Nothing happens in the main edit window, and the data in the Insert Table window changes back to the default settings when the window was opened.  Does anyone have any idea what is happening?

Thanks in advance.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Cannot seem to get Insert Table to work in tinyMCE

Post by Dr.CSS »

Most likely you just can't see the table as most of the CSS/style sheets hide borders, collapse them, etc. for tables, I just made some tables in mine and can't see them, did you turn tiny off to see if they are there?...

Of course it helps to know what ver. of cmsms you have...
Last edited by Anonymous on Thu Mar 11, 2010 8:05 pm, edited 1 time in total.
robbedoes
Forum Members
Forum Members
Posts: 75
Joined: Wed Aug 20, 2008 2:08 pm

Re: Cannot seem to get Insert Table to work in tinyMCE

Post by robbedoes »

Same problem here (1.6.5 "Poya").
When I add a table in html I can use the table plugin.
When I try the plugin to insert a new table, the popup returns to it’s defaults and that’s it.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Cannot seem to get Insert Table to work in tinyMCE

Post by Rolf »

Hi tdgarner and Robbedoes,

I agree with Dr.CSS.
After inserting a table and you open the html screen the table code will be there...

Go to the Advanced tab of TinyMCE in the admin.

Check the box: Include only screen CSS (Selecting this allows only attached stylesheets with the screen-mediatype selected to be included in the styles TinyMCE handles.)

When you create a table with some width, cellspacing and cellpadding you will see the table borders

Hope this helps, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
robbedoes
Forum Members
Forum Members
Posts: 75
Joined: Wed Aug 20, 2008 2:08 pm

Re: Cannot seem to get Insert Table to work in tinyMCE

Post by robbedoes »

I found out that the table function doesn’t work in safari, Firefox is ok.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Cannot seem to get Insert Table to work in tinyMCE

Post by Rolf »

Robbedoes wrote: I found out that the table function doesn’t work in safari, Firefox is ok.
Please make a bugreport: http://dev.cmsmadesimple.org/bug/list/12

Grtz. ®olf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
fredp
Forum Members
Forum Members
Posts: 218
Joined: Sun Jul 27, 2008 1:36 am

Re: Cannot seem to get Insert Table to work in tinyMCE

Post by fredp »

Hi,

I'm not sure if this will help anyone having problems with tables in TinyMCE, but in case it might...

Last year I was experimenting with optional TinyMCE-specific styling under the Advanced tab of the TinyMCE WYSIWYG admin page.  This can override CMSMS styles inside a WYSIWYG area.  While this isn't "exactly" ;) WYSIWYG, in certain situations it can help make tables easier to see and use in a TinyMCE WYSIWYG box.

Just as an example, I went to the Advanced tab and appended the following experimental CSS to the end of the Additions to stylesheet text box...

Additions to stylesheet:
CSS entered here will be added to the stylesheet read by TinyMCE after it recieves the CMSms styles

Code: Select all

.mceItemTable {
/* begin experiment */
  border-collapse: separate;
  empty-cells: show;
  border-spacing: 1px;
  padding: 1px;
}
.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {
  border: 1px double #ff0;
  min-width: 0.75em;
}
.mceItemTable, .mceItemTable caption, .mceItemVisualAid {
  border: 1px dashed #888;
}
.mceItemTable th {
  border: 1px double #eee;
/* end experiment */
}
I then inserted an empty 2x2 table into a WYSIWYG box, in Firefox 3.5.5, and attached a screen shot.

Hope this helps,
Fred
Attachments
wysiwyg.jpg
Nearly all men can stand adversity, but if you want to test a man's character, give him power.
- Abraham Lincoln
Alpdog14

Re: Cannot seem to get Insert Table to work in tinyMCE

Post by Alpdog14 »

This did not work for me, my tables still are invisible
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Cannot seem to get Insert Table to work in tinyMCE

Post by Dr.CSS »

A lot of times it's because here is a print style sheet attached to the page template...
Locked

Return to “Modules/Add-Ons”