Problem getting ck editor to work properly in zc1.5
PROBLEM GETTING CK EDITOR TO WORK PROPERLY IN ZC1.5
Zen Cart 1.5
Upgraded from 1.3.8a
I just added ck editor to the site, but when I go to "Define Page Editor" or "Easy Page Editor" on the admin back end and select CK as the editor, and then select a file, the path shows up correctly, but the file code or source doesn't show up?
Its just a big empty box. It doesn't matter if I hit source or not, its still totally empty.
Is there a easy fix for this one?
Thanks for your help!
Re: Problem getting ck editor to work properly in zc1.5
That suggests you've missed uploading one or more of the related files, or that there's a language problem.
I suggest downloading the latest version of the addon (updated today) and re-uploading the files.
Re: Problem getting ck editor to work properly in zc1.5
I upgraded from 1.3.9h to 1.5 and have the same problem.
It is strange that I can only see words in 1 file (define_site_map.php) the rest other files I don't see the contents.
I tried to redownload and uploaded the latest version but still the same. I also checked file permission and all the same, no difference.
I checked on mormal website they all there, no difference
I am not sure what is causing the problem that I can not see the contents of these files but define_site_map.php
Any help or suggestions would be great!
Thanks,
Re: Problem getting ck editor to work properly in zc1.5
Quote:
Originally Posted by
vienkhach
I upgraded from 1.3.9h to 1.5 and have the same problem.
It is strange that I can only see words in 1 file (define_site_map.php) the rest other files I don't see the contents.
I tried to redownload and uploaded the latest version but still the same. I also checked file permission and all the same, no difference.
I checked on mormal website they all there, no difference
I am not sure what is causing the problem that I can not see the contents of these files but define_site_map.php
Any help or suggestions would be great!
Thanks,
Don't take this the wrong way I've made these school boy mistakes myself
have you downloaded the latest version for v1.5
http://www.zen-cart.com/index.php?ma...oducts_id=1626
renamed the folders to your admin name
and set ckeditor as your default in admin configuration/mystore/html editor
Re: Problem getting ck editor to work properly in zc1.5
About the same problem here. My product descriptions are not showing when I try to edit my products. It is working for new product descriptions. Weird that the customer side still sees the descriptions as before.
I uploaded the correct files and double checked them.
My cache file is returning the error:
Code:
[11-Jan-2012 21:03:14] PHP Warning: htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/craftsg1/public_html/Wholesale/demo/wolfyjr421/includes/modules/product/collect_info.php on line 401
I am still troubleshooting if anyone has some tips.
Thanks very much.
Re: Problem getting ck editor to work properly in zc1.5
I forgot to include the code for that file. Also, I am using ZC 1.5
Here is the code for around Line 401 @ /admin/includes/modules/product/collect_info.php:
Code:
<script language="javascript"><!--
updateGross();
//--></script>
<?php
for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>
<tr>
<td class="main" valign="top"><?php if ($i == 0) echo TEXT_PRODUCTS_DESCRIPTION; ?></td>
<td colspan="2"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="main" width="25" valign="top"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']); ?> </td>
<td class="main" width="100%"><?php echo zen_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '100%', '30', htmlspecialchars((isset($products_description[$languages[$i]['id']])) ? stripslashes($products_description[$languages[$i]['id']]) : zen_get_products_description($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE)); //,'id="'.'products_description' . $languages[$i]['id'] . '"'); ?></td>
</tr>
</table></td>
</tr>
<?php
}
?>
The code in blue is line 401.
Re: Problem getting ck editor to work properly in zc1.5
Sorry for being a bit vague:blush:. Although I read these forums quite a bit, I do not post very often.
I hope that I am not barking up the wrong tree here.
Reading some other threads from older versions lead me to believe that CKEditor is the cause. I removed CKEditor and the text shows up fine (although it is all source code/plain text.)
I've used Winmerge to compare the file when working (CK Not Installed) and when not (CK installed). I can't find a difference so it leads me to believe that something is being modified by CK.
Perhaps my logic is flawed. I am not great at reading code. My symptoms are similar to Vien and Bongo but just a different file.
Any help or thoughts would be greatly appreciated.
Re: Problem getting ck editor to work properly in zc1.5
Quote:
Originally Posted by
crafts2gifts
I removed CKEditor and the text shows up fine
Somehow I missed that in your earlier discussion.
Puzzling.
Re: Problem getting ck editor to work properly in zc1.5
OK i found the fix for my problem
Edit this file admin/includes/languages/english.php
with the following line from:
// charset for web pages and emails
define('CHARSET', 'utf-8');
to:
// charset for web pages and emails
define('CHARSET', 'iso-8859-1');
and now I can read all my pages again.
Also check includes/languages/english.php
and includes/languages/YOUR_TEMPLATE/english.php
for
// charset for web pages and emails
define('CHARSET', 'iso-8859-1');
to make sure you have correct settings.
I would love to use 'utf-8' as default instead of 'iso-8859-1' for special characters (non-english) with my product descriptions but at least for now I know what caused the problem.
I am looking forward to change back to 'utf-8' as soon I figure out how make the editor can read all the pages with utf-8 setting.
Happy Zen Cart user!!!!
Re: Problem getting ck editor to work properly in zc1.5