Jump to content

Unable to edit using RTE


Guest lonewolf55337

Recommended Posts

Guest lonewolf55337

I am unable to use the rich text editor, in fact it doesn't even show up, the text boxes, where you would normally type, will not accept any text. the text area shows up as a white box with no scroll bar.

I used the mod to turn off the RTE for editing product descriptions, but I still can change the text on the Homepage, About Us, Contact Us , Privacy Policy ,Terms & Conditions.

Link to comment
Share on other sites

Guest lonewolf55337

Thanks to the post by goober999

http://www.cubecart.com/site/forums/index....28&hl=fckeditor

I was able to figure out how to turn off FCKeditor for not only the product descriptions like he mentioned, but also teh Homepage, and the Site documents. and the offline store message.

where before all I had was a solid white box and was unable to edit anything. in order for this to work you need to read the thread by goober999 that started it all. with out his ground work I would have never figured it out on my own. and this is also my first attempt at any kind of PHP debugging or programming.

you should be seeing a pattern on how this works.... by the time you get to the end.

To edit offline store message without FCKeditor

Insert the following code into "store"/admin/settings/index.php at line# 485

<?php if ($config['use_fckeditor'] == TRUE) { ?>

<tr>

<td width="30%" valign="top" class="tdText"><strong><?php echo $lang['admin']['settings']['off_line_content'];?></strong></td>

<td align="left">

<?php

include("../includes/rte/fckeditor.php");

$oFCKeditor = new FCKeditor('config[offLineContent]');

$oFCKeditor->BasePath = $GLOBALS['rootRel'].'admin/includes/rte/';

$oFCKeditor->Value = stripslashes($config['offLineContent']);

$oFCKeditor->Create();

?>

</td>

</tr>

<?php } else { ?>

<tr>

<td colspan="2" class="tdText">

<textarea name="offline content" type="text" class="text" cols="50" rows="5"><?php if(isset($results[0]['offlinecontent'])) echo $results[0]['offlinecontent']; ?></textarea> </td>

</td>

</tr>

<?php } ?>

To turn off FCKeditor in your "Site Documents" area.

paste the following code into "store"/admin/docs/sitedocs.php at lines #119

<?php if ($config['use_fckeditor'] == TRUE) { ?>

<tr>

<td class="tdRichText">

<?php

$oFCKeditor = new FCKeditor('doc_content') ;

$oFCKeditor->BasePath = $GLOBALS['rootRel'].'admin/includes/rte/';

if(isset($results[0]['doc_content'])){

$oFCKeditor->Value = $results[0]['doc_content'];

} else {

$oFCKeditor->Value = "";

}

$oFCKeditor->Create();

?></td>

</tr>

<?php } else { ?>

<tr>

<td colspan="2" class="tdText">

<textarea name="Doc_content" type="text" class="text" cols="50" rows="5"><?php if(isset($results[0]['doc_content'])) echo $results[0]['doc_conten']; ?></textarea> </td>

</td>

</tr>

<?php } ?>

To disable FCKeditor for your "Homepage" paste this code into lines 124 of "store"/admin/docs/home.php

<?php if ($config['use_fckeditor'] == TRUE) { ?>

<tr>

<td colspan="2" class="tdRichText">

<?php

$oFCKeditor = new FCKeditor('copy');

$oFCKeditor->BasePath = $GLOBALS['rootRel'].'admin/includes/rte/';

$oFCKeditor->Value = stripslashes($home['copy']);

$oFCKeditor->Create();

?>

</td>

</tr>

<?php } else { ?>

<tr>

<td colspan="2" class="tdText">

<textarea name="copy" type="text" class="text" cols="50" rows="5"><?php if(isset($results[0]['copy'])) echo $results[0]['copy']; ?></textarea> </td>

</td>

</tr>

<?php } ?>

Email to customers in "store"/admin/customers/email.php insert this code starting at lines 84

<?php if ($config['use_fckeditor'] == TRUE) { ?>

<tr>

<td colspan="2" class="tdRichText"><?php

include("../includes/rte/fckeditor.php");

$oFCKeditor = new FCKeditor('message') ;

$oFCKeditor->BasePath = $GLOBALS['rootRel'].'admin/includes/rte/';

if(isset($_POST['message'])){

$oFCKeditor->Value = base64_decode($_POST['message']);

} else {

$oFCKeditor->Value = "";

}

$oFCKeditor->Create();

?>

</td>

</tr>

<tr>

<?php } else { ?>

<tr>

<td colspan="2" class="tdText">

<textarea name="message" type="text" class="text" cols="50" rows="5"><?php if(isset($results[0]['message'])) echo $results[0]['message']; ?></textarea> </td>

</td>

</tr>

<?php } ?>

Link to comment
Share on other sites

  • 5 months later...

Works great! Tho, I had to resort to CHMOD 777 the tree to actually write a save. Dunno why, but I assumed that the file contents were stored in DB.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...