Problem, TinyMCE won't add $nbsp; to <div></div> when hitting return in WYSIWYG

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
websherpa

Problem, TinyMCE won't add $nbsp; to <div></div> when hitting return in WYSIWYG

Post by websherpa »

I have been using TinyMCE in my admin panel because we have a number of editable content areas and FCKeditorX (which is more functional) is a resource hog and timesout the server before the edit page has finished loading...

... my problem in TinyMCE is that when I use the key to space paragraphs, it inserts a with no $nbsp; in it so with my current styles it doesn't actually add a line break. 

Oddly, when I use the "sample" version in the TinyMCE Settings, it adds tags when I hit the key.

Any ideas what I need to do here to get the effect I am looking for (either how to change the default css for the tag, or how to get TinyMCE to do what I need? 

The Problem here is that it needs to be a transparent solution so that my clients can edit their content.

Thank you in advance.

Wayne [WEB]
"webSherpa"
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Problem, TinyMCE won't add $nbsp; to <div></div> when hitting return in WYSI

Post by Russ »

It should be setting the Paragraph tags on enter if you are in a paragaph, this is correct XHTML, it is a paragraph after all!  Shift enter should give you a   I think. If you are not in any element I think hitting enter should give you a ? or perhaps a  ??

Check out the latest version of TinyMCE, in fact wait a few days and I think there will be an even better one in svn. Actually on the current version it works correctly for me, but mine is a much messed with version so this may not reflect what the current version does.

Hope this helps,

Russ
mpop

Re: Problem, TinyMCE won't add $nbsp; to <div></div> when hitting return in WYSI

Post by mpop »

Why would you want to put text inside plain divs instead of paragraphs ?
websherpa

Re: Problem, TinyMCE won't add $nbsp; to <div></div> when hitting return in WYSIWYG

Post by websherpa »

I wouldn't but that's what TinyMCE was doing itself by default for some unkown reason.  It seems to be behaving better now that I have upgraded.
mpop

Re: Problem, TinyMCE won't add $nbsp; to <div></div> when hitting return in WYSI

Post by mpop »

websherpa wrote: I wouldn't but that's what TinyMCE was doing itself by default for some unkown reason.  It seems to be behaving better now that I have upgraded.
That's strange. I used the current TinyMCE module, and it's behaving ok. Actually I chose TinyMCE over FCKEditor because FCKEditor wouldn't output paragraphs when hitting return at the end of a title. :P

It may have something to do with the activated (or not activated) options/modules for TinyMCE. :-\
Locked

Return to “CMSMS Core”