Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2008-01-28 16:42:00

Aquiva
New member
Registered: 2008-01-28
Posts: 2

Stupid <P> with Enter. How do I have <Br />?

Argh!

So the three reasons why I choose HTMLarea/Xinha for my Drupal over all the other retarded text editors is this:

1. When I hit enter it would do a single <br />, rather than the super super retarded double spaced paragraph <p> thing.
2. Shortcut keys like CTRL+B worked.
3. I could make it look pretty.

But now. my #1 reason for choosing HTMLarea/Xinha just stopped working on me. Whenever I hit the ENTER key it now jumps

two lines like

now.

rather than something nice
like this.

Yes. I know you can just hit "SHIFT+ENTER" but that is really retarded.

SO PLEASE. How can I change this? I JUST WANT IT TO BE BACK TO NORMAL!
If it matters... I'm on Drupal 5.1.

Thanks.
~ Mark

Offline

#2 2008-01-29 06:57:01

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Stupid <P> with Enter. How do I have <Br />?

IE has always done this, it is IE's way.  Word does the same.

Gecko will do it with "built-in" as Xinha.config.mozParaHandler.

It has been discussed many times.  Search.  It's not changing.


James Sleeman

Offline

#3 2008-01-30 15:35:55

Aquiva
New member
Registered: 2008-01-28
Posts: 2

Re: Stupid <P> with Enter. How do I have <Br />?

Okay. So I looked around and I added the
config.pageStyle = 'p { margin:0; } ';

into the Xinha.CSS and now it displays properly on my website.
But in the HTMLarea/Xinha editor yourself it still displays the original large and ugly margin. I tried editing the HTMLarea.CSS file by adding in the same line "config.pageStyle = 'p { margin:0; } ';" but it didn't work.

Is there anyway that I can ALSO get the <p> to have a margin of 0 in the WYSIWYG editor as well?

Offline

#4 2008-01-31 12:42:33

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

Re: Stupid <P> with Enter. How do I have <Br />?

just do p { margin:0; } in that

the difference being htmlarea.css is a stylesheet file, and the change to the config is javascript - the way of setting them is different between languages


David G. Paul
[url]http://www.newearthonline.co.uk[/url]

Offline

#5 2008-11-21 06:28:32

memphis100
New member
Registered: 2008-11-21
Posts: 1

Re: Stupid <P> with Enter. How do I have <Br />?

HI!

Is there really no way for forcing IE to insert <br/> Tags instead of <p> when pressing Enter.

This CSS-Workaround doesn't help me because I convert the HTML to pdf and the Converter (htmldoc) doesn't interpret CSS.

yours

Memphis100

Offline

Board footer

Powered by FluxBB