Zen Cart Logo
Forums / Customization from the Admin / Define Pages editor adds 4 or 5 blank lines every time I save

Define Pages editor adds 4 or 5 blank lines every time I save

Views: 1,670

Results 1 to 5 of 5
30 Jul 2012, 5:24 PM
#1
micallen avatar

micallen

New Zenner

Join Date:
May 2012
Location:
South Carolina
Posts:
40
Plugin Contributions:
0

Define Pages editor adds 4 or 5 blank lines every time I save

When I use the Define Pages Editor from the Admin, it adds 4 or 5 blank lines to the beginning of my define_main_page.php.

What causes this? How can I avoid it ??

30 Jul 2012, 6:19 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Define Pages editor adds 4 or 5 blank lines every time I save

Are you using the HTML editor, or pasting copy into that page from another program, or ...?

30 Jul 2012, 6:38 PM
#3
micallen avatar

micallen

New Zenner

Join Date:
May 2012
Location:
South Carolina
Posts:
40
Plugin Contributions:
0

Re: Define Pages editor adds 4 or 5 blank lines every time I save

stevesh:

Are you using the HTML editor, or pasting copy into that page from another program, or ...?

I originally pasted copied code from Front Page 2003 into the html editor. Then when I use the Define Pages Editor from the Admin, it adds 4 or 5 blank lines to the beginning.

30 Jul 2012, 7:30 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Define Pages editor adds 4 or 5 blank lines every time I save

It's never a good idea to paste copy into Zencart from any WYSIWYG editor, especially Front Page and Word. Such programs add a lot of extraneous styling that can conflict with what Zencart is trying to do, and may be the reason for your extra lines.

Better to paste (or enter) your copy as plain text and style it in the stylesheet, or use the HTML editor in the define pages editor to enter the copy in the first place.

21 Aug 2012, 5:34 PM
#5
micallen avatar

micallen

New Zenner

Join Date:
May 2012
Location:
South Carolina
Posts:
40
Plugin Contributions:
0

Re: Define Pages editor adds 4 or 5 blank lines every time I save

stevesh:

...or use the HTML editor in the define pages editor to enter the copy in the first place.

I try this, and it never fails, if it's something I wouldn't want to re-type... it times out on me and I lose what I've done. :(