Contributions
CKEditor [wyswyg]
English_______________
Very good editor wyswyg and more modern than tinyMCE and FCKEditor.
Added screenshot
Español______________
Editor wyswyg muy bueno y más moderno que tinyMCE y FCKEditor.
Añadido screenshot
FULL PACKAGE
Expand All / Collapse All
There is a small bug related with security in filemanager config.php . If someone knows the url for filemanager (i.e. http://xxxxxxx/admin/ckeditor/filemanager/index.php?editor=ckeditor&filter=image&CKEditor=products_description[2]&CKEditorFuncNum=2&langCode=en), then he/she can view, delete, or change the files.
To fix that:
FIND:
if (!isset ($_SESSION ['osCAdminID']))
on line 29
CHANGE TO:
if (!isset ($_SESSION ['osCAdminID'])) exit;
implementation of ckeditor and PDW filemanager
after alot of testing this is the best open source filemanager available.
included config files, pdf instructions and screen shots
2 min setup
Full Package
this is a intergration of ckeditor and corefive filemanager into osc
once installed call ckeditor.js and change tep_draw_textarea_field to tep_draw_textarea_ckeditor on any page
hope this helps someone
the "replace this" on point 4 of the previous instruction would output this:
<textarea name="products_description[2]" cols="70" rows="10" id = products_description[2] class="ckeditor">
(2 or whatever language id)
leaving the id value unquoted
So I updated the instructions txt with the necessary quotes marks
4. Find this code in catalog/admin/categories.php
<?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15',
(isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) :
tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?>
replace with this
<?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '10',
(isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) :
tep_get_products_description($pInfo->products_id, $languages[$i]['id'])),'id="products_description[' .$languages[$i]['id'] . ']" class="ckeditor"'); ?>
No files attached - just a note after axioma's comment. No license is needed when integrating into open source software. From CKEditor's site:
CKEditor is distributed under the GPL, LGPL and MPL open source licenses. This triple copyleft licensing model avoids incompatibility with other open source licenses. These Open Source licenses are specially indicated for:
* Integrating CKEditor into Open Source software;
* Personal and educational use of CKEditor;
* Integrating CKEditor in commercial software, taking care of satisfying the Open Source licenses terms, while not able or interested on supporting CKEditor and its development.
No files attached.
Disregard axioma's comment. You do NOT have to pay to use CKEditor.
Check their license terms here: http://ckeditor.com/license
CKEditor is free, GPL. What they offer, for a price, is for commercial applications that can't (or won't) adhere to GPL terms.
The main "downside" to thie FREE wysiwyg editor is that they no longer include a file browser (not that it was great, but at least it was there in FCKEditor)
Sure, that is a ploy to get you to purchase their CKFinder.
But there are alternatives. For my purposes, I rarely need a file browser, but an image browser.
Kae's file manager (also free) plugins in easily:
http://kfm.verens.com/
I'll get together a nice package of CKEditor and KFM to put up here soon. What I do in the kfm configuration is include the osC configure.php so I can use those defines instead of modifying the paths for each site I setup using CKEditor and KFM (again both are FREE).
Attached is just ckeditor 3.4, no kfm included. But I'm on a mission now :)
CKEditor is so good BUT...
You have to pay... since have been assumed that your store has a commercial goal... (sell products o services and pursuing profit).
Licenses CKEditor to be used inside pages of your web site.Price: US $375
If your store is under radar, and not well known store, is not problem, because no body cares... otherwise you will enforced to pay.
Consider other alternatives if you want to have a free editor. TinyMCE is a good one
anyway if you are interested on use this fantastic editor, CKEditor [wyswyg], you will have to pay for it.
Just the installation instructions in text format for more easy copy n past.
I did not find a specific Support tread for this New Ckeditior on this page,,, so here is one...
http://forums.oscommerce.com/topic/353131-ckeditor-wyswyg-7112/
I also included a comment for adding CKeditor to catalog side, [example] tell a fried, contact_us, ect, ect pages.
Run this query in phpmyadmin. You can modyfy where you want this option listed. The groupe_id is for the configuration groupe in admin - configuration. No 1 is "My Store". The "sort order" is where in the list this will be added. For me no. 22 was the next availeble sort order under group_id = 1.
Changes to fit your store.
INSERT INTO `configuration` ( `configuration_id` , `configuration_title` , `configuration_key` , `configuration_value` , `configuration_description` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` )
VALUES (
'', 'Use CKEditor', 'CKEditor_use', 'false', 'Select if you want to use CKEditor or not', 1, , '', '', NULL , 'tep_cfg_select_option(array(''true'', ''false''),'
)
In the file you have to add this in the HEAD section to be able to load ckeditor javascript when needed. Currently categories.php and information_manager.php.
<!-- /*** START CKEditor for product description and information page unlimites 2.07 ***/ //-->
<?php
if (CKEditor_use == 'true') {
if ($action == 'new_product' || $information_action == 'Added' || $information_action == 'Edit' ) {
// No need to put JS on all pages. If need more action to the string above.
echo '<script type="text/javascript" src="./ckeditor/ckeditor.js"></script>';
}
}
?>
<!-- /*** END CKEditor for product description and information page unlimites 2.07 ***/ //-->
To only load javascript for ckeditor when needed.
Replace this with the javascript code as described in installation instructions. Or before the </HEAD> tag. Also change the javascript code in admin/information_manager.php
<!-- /*** START CKEditor for product description and information page unlimites 2.07 ***/ //-->
<?php
if ($action == 'new_product' || $information_action == 'Added' || $information_action == 'Edit' ) {
// No need to put JS on all pages. If need more action to the string above.
echo '<script type="text/javascript" src="./ckeditor/ckeditor.js"></script>';
}
?>
<!-- /*** END CKEditor for product description and information page unlimites 2.07 ***/ //-->
I have created a support tread to this contribution where we can help each other to get this contribution to work better and with more contributions, add more functions to it and improve it.
http://forums.oscommerce.com/topic/353005-contribution-ckeditor-wyswyg/
Thanks to escri2 for adding this contribution.
English_______________
Very good editor wyswyg and more modern than tinyMCE and FCKEditor.
Added screenshot
Español______________
Editor wyswyg muy bueno y más moderno que tinyMCE y FCKEditor.
Añadido screenshot
FULL PACKAGE
Note: Contributions are used at own risk.