PDA

View Full Version : CKEditor osC 2.3.1



michael_s
12-21-2010, 03:01 PM
A slightly more elegant solution is listed below which utilises the new embedded jQuery functionality to create the CKeditor box on the fly after page load.

Doing it this way creates a CKEditor field for product descriptions and newletters and should also work with most contributions that use the textarea field.

CKEditor can be switched on and off in Configuration->My Store. The configuration query which adds this can be added manually with phpMyAdmin or similar if desired.

I wouldn't recommend using this on the catalog side as there is the possibility of leaving potentially unpatched attack vectors if you do not keep up to date with new releases of CKEditor.

1. Download the latest CKEditor from http://ckeditor.com/download and unpack to catalog/admin/ext/ckeditor - ckeditor.js should now be in the top level of this folder. CKeditor 3.5 (released December 17th, 2010) is included in this zip but please check for a newer version before install.

2. Open /catalog/admin/includes/functions/html_output.php and change the tep_draw_textarea_field (around line 252) to read:

$field = '