Page 1 of 1

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

Posted: Sat Nov 25, 2006 2:22 pm
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"

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

Posted: Sun Nov 26, 2006 8:32 pm
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

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

Posted: Mon Nov 27, 2006 6:48 pm
by mpop
Why would you want to put text inside plain divs instead of paragraphs ?

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

Posted: Mon Nov 27, 2006 7:11 pm
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.

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

Posted: Tue Nov 28, 2006 8:59 am
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. :-\