Originally Posted by
carlwhat
#1 - i don't think this is a compatibility issue.
#2 - have you posted the complete debug log? i don't think the script should stop on a warning. please post the complete contents of the debug log.
#3 - post the contents on the ckeditor.php file.
#2, yes, i have posted the completed debug log, i checked again. by the way, when i select plain text, there's no error log, once i selected CKEditor, the error caused.
#3
PHP Code:
<?php
/**
* @package admin
* @copyright Copyright 2010 Kuroi Web Design
* @copyright Portions Copyright 2009 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: ckeditor.php 277 2010-05-22 14:09:32Z kuroi $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$var = zen_get_languages();
$jsLanguageLookupArray = "var lang = new Array;\n";
foreach ($var as $key)
{
$jsLanguageLookupArray .= " lang[" . $key['id'] . "] = '" . $key['code'] . "';\n";
}
?>
<script type="text/javascript" src="<?php echo (strstr(HTTP_SERVER, 'ttps:') ? 'https' : 'http'); ?>://www.google.com/jsapi"></script>
<script type="text/javascript">if (typeof jQuery == 'undefined') google.load("jquery", "1");</script>
<script type="text/javascript" src="../<?php echo DIR_WS_EDITORS ?>ckeditor/ckeditor.js"></script>
<script type="text/javascript"><!--
$(document).ready(function() {
<?php echo $jsLanguageLookupArray ?>
$('textarea').each(function() {
if ($(this).attr('name') != 'message' && $(this).attr('class') != 'noEditor')
{
index = $(this).attr('name').match(/\d+/);
if (index == null) index = <?php echo $_SESSION['languages_id'] ?>;
CKEDITOR.replace($(this).attr('name'),
{
coreStyles_underline : { element : 'u' },
width : 760,
language: lang[index]
});
}
});
});
//--></script>
Bookmarks