Forums / Bug Reports / [Done v1.3.9c] FCKeditor shows raw HTML markup in product descriptions with v1.3.9b

[Done v1.3.9c] FCKeditor shows raw HTML markup in product descriptions with v1.3.9b

Locked

Started by kitcorsa on 11 May 2010, 8:38 AM · Views: 5,681

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
11 May 2010, 8:38 AM
#1
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

[Done v1.3.9c] FCKeditor shows raw HTML markup in product descriptions with v1.3.9b

cant seem to get an editor to work in 1.3.9b.....

tried the fck editor and the modual loads in but the text area still displayes the html even with souce off... tired installing the ck editor and this wont load... pages load till the text area and stop.


15 May 2010, 12:43 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: [Done v1.3.9c] FCKeditor shows raw HTML markup in product descriptions with v1.3.9b

Im getting the same issue with the latest version of FCK (off the free add-ons).

After an upgrade to 1.3.9b...

Initial Content in the database:

<b>Heading</b>
<br />
Descriptive text goes here.

FCK seems not to be stripping the html tags and replacing them with html ccharacter codes, so when I RE-OPEN in Plain Text editor mode, I see the content as:

<b>Heading</b>
<br />
Descriptive text goes here.

... So when this shows in a BROWSER, it looks like base HTML !

Removed FCK...

... and now HTMLArea has died completely too..

Tried a re-install of HTMLArea (out of 1.3.9b package). Also, checked relevant files in Admin relating to the editors.

No luck...

20 years a Zencart User

15 May 2010, 4:51 PM
#3
wowemall avatar

wowemall

Zen Follower

Join Date:
Jan 2005
Posts:
101
Plugin Contributions:
0

Re: [Done v1.3.9c] FCKeditor shows raw HTML markup in product descriptions with v1.3.9b

i also face same problem, can anyone help me.
tried the fck editor and the modual loads in but the text area still displayes the html even with souce off.

16 May 2010, 6:37 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: [Done v1.3.9c] FCKeditor shows raw HTML markup in product descriptions with v1.3.9b

schoolboy:

Im getting the same issue with the latest version of FCK (off the free add-ons).

After an upgrade to 1.3.9b...

Initial Content in the database:

<b>Heading</b>
<br />
Descriptive text goes here.

> 
> FCK seems not to be stripping the html tags and replacing them with html ccharacter codes, so when I RE-OPEN in Plain Text editor mode, I see the content as:
> ```
<b>Heading</b>
<br />
Descriptive text goes here.

... So when this shows in a BROWSER, it looks like base HTML !

Removed FCK...

... and now HTMLArea has died completely too..

Tried a re-install of HTMLArea (out of 1.3.9b package). Also, checked relevant files in Admin relating to the editors.

No luck...

Edit /admin/includes/modules/product/collect_info.php
On line 404 you'll see this:$oFCKeditor->Value = (isset($products_description[$languages[$i]['id']])) ? [B]htmlspecialchars([/B]$products_description[$languages[$i]['id']][B])[/B] : [B]htmlspecialchars([/B]zen_get_products_description($pInfo->products_id, $languages[$i]['id'])[B])[/B] ;replace it with this:```
$oFCKeditor->Value = (isset($products_description[$languages[$i]['id']])) ? $products_description[$languages[$i]['id']] : zen_get_products_description($pInfo->products_id, $languages[$i]['id']);

If using other product-types as well, repeat for those similarly.

Unfortunately, you'll have to clean up any damaged HTML by hand. The editor will not do it for you.

This fix will be included in v1.3.9c

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 May 2010, 9:19 AM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: [Done v1.3.9c] FCKeditor shows raw HTML markup in product descriptions with v1.3.9b

Thanks doc...

20 years a Zencart User

15 Aug 2010, 10:27 PM
#6
cropinstop avatar

cropinstop

New Zenner

Join Date:
Oct 2006
Location:
Surprise Arizona
Posts:
73
Plugin Contributions:
0

Re: [Done v1.3.9c] FCKeditor shows raw HTML markup in product descriptions with v1.3.9b

Html problem is also occurring on editing EZ pages with FCKeditor 2.6.4.1 on zcart 1.3.9c. Suspect there is a similar fix:huh:

18 Aug 2010, 2:10 AM
#7
cjsmiff avatar

cjsmiff

Zen Follower

Join Date:
Jul 2006
Location:
UK
Posts:
170
Plugin Contributions:
0

Re: [Done v1.3.9c] FCKeditor shows raw HTML markup in product descriptions with v1.3.9b

Hi,

I'm also having this problem when editing ezpages on 1.3.9e. It shows the code in the editing box.

I know there was a fix for this somewhere on the forum, I encountered the same issue with 1.3.9a but found the fix here somewhere!

Today I've read every post about ezpages and fckeditors (all versions) but can't find it, boohoo!!

Please help!
:cry:

18 Aug 2010, 2:26 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: [Done v1.3.9c] FCKeditor shows raw HTML markup in product descriptions with v1.3.9b

If fckeditor is that critical to your needs, then make the same type of edit to the ezpages script as was posted above for products.

CKEditor is more contemporary and is recommended far more highly than fckeditor.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Aug 2010, 3:23 AM
#9
cjsmiff avatar

cjsmiff

Zen Follower

Join Date:
Jul 2006
Location:
UK
Posts:
170
Plugin Contributions:
0

Re: [Done v1.3.9c] FCKeditor shows raw HTML markup in product descriptions with v1.3.9b

Thanks for that, I kind of figured so but couldn't find where to edit it. Your reply somehow reminded me to use the developers toolkit to find it, I'm forever forgetting that fab tool teehee!

Anyway for anyone else that's interested I edited admin/ezpages.php:

Changed line 434 from

$oFCKeditor->Value = htmlspecialchars($ezInfo->pages_html_text);

To

$oFCKeditor->Value = $ezInfo->pages_html_text;

And now it works fine in EZPages again.

:clap:

27 Aug 2010, 4:10 AM
#10
hayden avatar

hayden

New Zenner

Join Date:
May 2008
Location:
South Australia
Posts:
86
Plugin Contributions:
1

Re: [Done v1.3.9c] FCKeditor shows raw HTML markup in product descriptions with v1.3.9b

worked for me too, with v1.3.9f and fck file editor__fckeditor_plugin_2-6-4-1.zip

thanks.