If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Customization from the Admin / Main page errors when i edit it using HTML area with microsoft word

Main page errors when i edit it using HTML area with microsoft word

Started by anjanadesilva on 18 Apr 2012, 6:58 AM · Views: 1,306

Results 1 to 5 of 5
18 Apr 2012, 6:58 AM
#1
anjanadesilva avatar

anjanadesilva

New Zenner

Join Date:
Apr 2012
Posts:
1
Plugin Contributions:
0

Post #1 by anjanadesilva

My web site main page has errors when i edit it using
Tools >Define Page Editor>
HTMLarea
I didnt put any codes. I did copy past with microsoft word.
http://naturamakeup.com/

  • It is work with pain text edit option
  • It doesn't work with HTML

Please help me.

However when I try to add a product using HTML editor. its works

18 Apr 2012, 8:09 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Post #2 by rodg

anjanadesilva:

My web site main page has errors when i edit it using
Tools >Define Page Editor>
HTMLarea
I didnt put any codes. I did copy past with microsoft word.
http://naturamakeup.com/

  • It is work with pain text edit option
  • It doesn't work with HTML

Please help me.

However when I try to add a product using HTML editor. its works

Don't use MsWord (or any other 'word processor' to edit HTML files. It will cause problems and there is no way to avoid that.

Use a text editor or an HTML editor designed for the job.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

18 Apr 2012, 8:17 AM
#3
vividknowledge avatar

vividknowledge

New Zenner

Join Date:
Apr 2012
Location:
Florida
Posts:
9
Plugin Contributions:
0

Post #3 by vividknowledge

When using the HTML editor, you do NOT paste HTML into it. The HTML editor generates HTML for you when you use the markup tools. Pasting actual HTML into it doesn't work because it will convert the HTML you paste into character entities to DISPLAY the actual HTML on screen. For example, the angle brackets surrounding the tags such as <pre /> will display on the page like this one here just did instead of leaving it behind the scenes as markup. The TEXT editor is actually for you to paste actual HTML which is what you are trying to do. The HTML editor is for creating page content using markup tools so that you do not need to know HTML and it applies HTML for you. What you are doing is bringing HTML into an editor that is going to convert it into screen display text (to include the characters that would otherwise be interpreted). I know... the names of the editors throw you off, but that is what is going on. In short, if you are going to copy and paste HTML, you should be using the TEXT editor so that it does not mess with your actual code. Dont worry, you can use Word if you wish... that actually isnt the issue here. Sorry Rod, but it's true... even though I fully agree with it NOT being the best tool to choose ;-) I hope that made sense.

18 Apr 2012, 8:40 AM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Post #4 by rodg

vividknowledge:

Sorry Rod, but it's true...

In light of the rest of your excellent response I'm more than happy to accept this piece of criticism. :smile:
Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

18 Apr 2012, 8:50 AM
#5
vividknowledge avatar

vividknowledge

New Zenner

Join Date:
Apr 2012
Location:
Florida
Posts:
9
Plugin Contributions:
0

Post #5 by vividknowledge

Ha ha ha... Thanks Rod, and yet I totally agree with what you were saying! MSWord is NOT a good choice, however, as you well know, most people will use what they know how to use, and Word is one of those things. I just didn't want the OP to get too awfully concerned and waste too much time right away looking for something they can use. However, and this is to the OP, please do try to locate an HTML tool other than Word... Rod is correct in that it will reek havoc on your code.