Issues with TinyMCE stripping font formatting

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
10/29/2009 7:36:34 AM
Gravatar
Total Posts 51

Issues with TinyMCE stripping font formatting

Hey Joe -

running v2.3.1.9, MSSQL05

I'm having an issue with TinyMCE.  I like it a lot more than FCKEditor, but the Bold and Italic buttons aren't working. Specifically, if I highlight text in the editor and click the B button or I button, it will show up correctly in the editor window, but will not show up when I hit update and return to the page.

Not only that, but if I have content generated using FCKEditor, when I go back to edit it using TinyMCE, the bold and italic treatments get stripped out.  TinyMCE also seems to be swapping 'b' and 'i' tags for 'strong' and 'em', which would be fine if it was actually showing up, but I wonder if that has something to do with it.

Did I miss some config item for TinyMCE?

10/29/2009 7:45:11 AM
Gravatar
Total Posts 18439

Re: Issues with TinyMCE stripping font formatting

Hi,

It seems to be working fine here, though it does use em and strong which are semantically better than i or b. I'm pretty sure i an b are either invalid xhtml or deprecated.

This site is running a newer build which has a newer version of TinyMCE and some improvements in our configuration file for TinyMCE. You can get the current build for ms sql mojoportal-mssql-build-2009-10-29.zip from our Novell Forge download page.

I would make sure you don't have something in your css that is making strong not bold an em not italic. See if you get different results using different skins.

Hope it helps,

Joe

10/29/2009 8:13:53 AM
Gravatar
Total Posts 51

Re: Issues with TinyMCE stripping font formatting

Shortly after posting I thought of exactly your recommendation, and that does seem to be the case.  When I swap to any other skin, it's working fine, so there must be something buried in there stripping things out.

I hadn't logged into the demo sandbox for awhile, and just noticed that you no longer include/support the extjs skin.  Bad news for me I suppose, as that is the skin I based the client's custom on (they like being able to hide/show the navigation, and didn't want a 3-level suckerfish dropdown.)  I guess I'll have to just comb through the stylesheets and find the issue, unless you have an idea where the problem could be coming from?

Thanks as always for your quick response Joe!

10/29/2009 8:28:48 AM
Gravatar
Total Posts 18439

Re: Issues with TinyMCE stripping font formatting

Hi,

ExtJs changed their license to GPL which is not compatible so I could never upgrade it anymore and shipping the ExtJs scripts with mojoPortal added a lot to the file size so I dropped that skin and removed the ExtJs scripts from our package. However since the scripts already exist on your installation you should be able to continue using it. I would make sure your skin uses the new stylesheet combiner and contains the ScriptLoader as documented here:

http://www.mojoportal.com/important-skin-changes.aspx

Note that its possible that the ExtJs CSS is changing those elements. since it is loaded above the main css I think you could explicitly put that back by adding:

strong { font-weight:bold; }
em {  font-style:italic; }

at the bottom of your main css file probably stylelayout.css

Hope it helps,

Joe

10/29/2009 8:43:09 AM
Gravatar
Total Posts 51

Re: Issues with TinyMCE stripping font formatting

Yeah, it was buried deep in the ext css files, but I just dropped it into the ext-js-override.css and it worked fine (I feel dumb now, should have thought of that before.)  Thanks for your help Joe!

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