TinyMCE table borders

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
5/30/2012 7:10:43 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

TinyMCE table borders

Hi guys, we're having an issue with the latest versions of TinyMCE (3.5 and 3.511). If you create a table and specify a border, it gets ignored/stripped, so all tables are appearing borderless. Any idea if that could be something due to the configuration file or other settings in mojoPortal? I don't see anything about that on the TinyMCE forum, and I'd think it would be a big issue if it were global.

As always, any help is greatly appreciated!

Jamie

5/31/2012 12:03:27 PM
Gravatar
Total Posts 18439

Re: TinyMCE table borders

Hi Jamie,

Even though TinyMCE 3.5.1.1 came out only a few days ago, today they released version 3.5.2 and it seems to have fixed this bug.

I just pushed this update to our source code repository.

Thanks,

Joe

5/31/2012 1:10:57 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: TinyMCE table borders

Great, thanks Joe, I'll give it a shot.

Jamie

6/6/2012 3:44:00 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: TinyMCE table borders

Hey Joe, we found another TinyMCE issue. As you know, in the Slideshow of elements, to enable clicking of links we need to use the onclick JavaScript event like this:

<a onclick="window.open(this.href,'_self');return false; " href="http://www.escondido.org/daley-ranch.aspx">More info</a>

With TinyMCE 3.52 in mojoPortal, the JavaScript is being stripped when the content is loaded, leaving

<a href="http://www.escondido.org/daley-ranch.aspx">More info</a>

I tried to reproduce here on the mojoPortal demo site, but selecting TinyMCE as the site editor results in HTML edits coming up as a plain text area, so perhaps TinyMCE is disabled?

Also, I'm not sure if this is a bug in TinyMCE or a configuration setting. I was able to use the JavaScript version of the link at the TinyMCE full demo and it seemed to work fine saving and reloading. I'm assuming they are using TinyMCE 3.52 there just as we are in mojoPortal?

Thanks as always,

Jamie

6/7/2012 3:31:01 PM
Gravatar
Total Posts 18439

Re: TinyMCE table borders

Hi Jamie,

My guess is this is caused because I changed the default schema for TinyMCE to html5 since the newer versions now support it.

You can change it back by adding this in user.config

<add key="TinyMCE:Schema" value="html4" />

Probably their main demo is using html4, but they do have a TinyMCE html 5 demo.

The previous bug for table borders was only affecting the html 5 schema so I suspect this one is as well, but everything is headed in the html 5 direction so I'm inclined to keep the default as html5.

We recently added a setting in the html content feature to allow forcing a plain teaxtarea on an instance and this may be the best solution for content instances that have custom javascript or custom manually edited html.

Best,

Joe

6/7/2012 5:01:49 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: TinyMCE table borders

Thanks a bunch, Joe, I'll give that a try. I did give the webmaster in question the workaround of turning off WYSIWYG editing for the feature, so this is more of a convenience issue anyway for now.

Jamie

You must sign in to post in the forums. This thread is closed to new posts.