Hello,

Every time in TinyMCE when I want to have a line break, tinyMCE makes a paragraph (and leaving an extra blanc line).

My settings are to full html, and I'm using Drupal 4.7.3.

The only thing working is to do a Shift-Enter in TinyMCE. Then I'm getting a normal line-break. But I think that's not the normal way it should be.

Anyone knowing how to get normal line-breaks in TinyMCE?

Thanks in advance.

Comments

rkendall’s picture

Hi there,

It sounds like you have the solution already. It is quite common in most through-the-web rich text editors to default to creating a new paragraph when you hit enter (as this is the most common usage).

The only thing working is to do a Shift-Enter in TinyMCE. Then I'm getting a normal line-break. But I think that's not the normal way it should be.

In this case it is the 'normal' way.

--
Ross Kendall
UK based Web and IT consultant specialising in Free and Open Source Software technologies.
http://rosskendall.com

slingeraap’s picture

Ah well :-)

But I have made one other Drupal site before about 2 months ago (Drupal 4.7.2.) and there this "problem" doesn't exists.

So I'm wondering if I have missed a setting or something somewhere...

I prefer to have a normal line break when hitting enter [br /] and I really don't need paragraphs, then I will just hit enter twice.

rkendall’s picture

OK, it is a configurable TinyMCE option.

see the TinyMCE docs:
http://tinymce.moxiecode.com/tinymce/docs/option_force_br_newlines.html

Hope that helps.

Ross.

--
Ross Kendall
UK based Web and IT consultant specialising in Free and Open Source Software technologies.
http://rosskendall.com

slingeraap’s picture

Thanks!

I tried the stylesheet p with no margins, but then I see something different in TinyMCE (still paragraphs) as in real, so that's confusing.

I also tried to set force_br_newlines : true. But this doesn't seem to work also, still extra blanc lines after returns.

Well, I don't know which moron at Moxiecode says that [br] never should be used, but I still prefer simpele line breaks above forced paragraphs! Writing down a name with an address is impossible now. Which do you prefer?

Name

Street Address

City

or

Name
Street Address
City

? :-)

But many thanks for the info!

slingeraap’s picture

:-)