Page 1 of 1

TinyMCE converts cellspacing to cellSpacing

Posted: Fri Mar 21, 2008 4:13 pm
by oliver341
Hi all, whenever I edit some xhtml with TinyMCE in CMSMS I find it always converts "cellspacing" to "cellSpacing" which is very annoying because this isn't xhtml compliant. There are other attributes which get converted like this.

Please could someone tell me where to go to change this behaviour?

Re: TinyMCE converts cellspacing to cellSpacing

Posted: Fri Mar 21, 2008 9:47 pm
by Pierre M.
Hello,

Code: Select all

egrep -r cellSpacing cmsmadesimple-1.2.3/ | sed -e 's/\:.*//' | sort | uniq
outputs :

Code: Select all

cmsmadesimple-1.2.3/modules/TinyMCE/tinymce/jscripts/tiny_mce/plugins/
simplebrowser/connectors/test.html
simplebrowser/frmactualfolder.html
simplebrowser/frmcreatefolder.html
simplebrowser/frmfolders.html
simplebrowser/frmresourceslist.html
simplebrowser/frmresourcetype.html
simplebrowser/frmupload.html
table/jscripts/table.js
With an additionnal "| wc -l" it tells you have 8 files to patch for cellSpacing.

Pierre M.

Re: TinyMCE converts cellspacing to cellSpacing

Posted: Fri Mar 21, 2008 10:06 pm
by oliver341
Hi Pierre, I've just tried editing my site in Firefox, and in Firefox TinyMCE does not rename cellspacing to cellSpacing. In Internet Explorer however, cellspacing is renamed to cellSpacing.

For instance, I edit some table html in non-WYSIWYG mode, turn WYSIWYG mode on, then off again. cellspacing is then renamed to cellSpacing. Why would Internet Explorer do this? And do I understand correctly that searching and replacing all occurances of cellSpacing in the TinyMCE code is the fix? Thanks.

Re: TinyMCE converts cellspacing to cellSpacing

Posted: Fri Mar 21, 2008 10:47 pm
by oliver341
I have search and replaced all occurances of cellSpacing within CMSMS, and the TinyMCE cellspacing -> cellSpacing problem is still happening. If Internet Explorer itself is converting cellspacing -> cellSpacing it's a very strange bug.

Re: TinyMCE converts cellspacing to cellSpacing

Posted: Tue Mar 25, 2008 8:34 pm
by Pierre M.
Very strange !
Seems a bug in IE to me. MS is kidding us again.
Or... have you cleared your browser's cache ?

Pierre M.

Re: TinyMCE converts cellspacing to cellSpacing

Posted: Tue Mar 25, 2008 9:05 pm
by oliver341
It doesn't appear to be a browser cache issue, because the cellspacing -> cellSpacing conversion occurs even with toggling the "Use WYSIWYG" button, which is purely a Javascript operation. It does seem to be a bug in IE, but I wonder why a Javascript implementation would need to make this conversion internally.