| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Adding the FCKeditor HTML Editor | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Adding the FCKeditor HTML Editor
I'm not that keen on the HTML editor module in v4.1.x...
FCKEditor is far better, it generates decent HTML and has a very useful image uploader. Here's how to add it... 1) Disable the existing HTML editor in modules. 2) Download FCKeditor here - http://www.fckeditor.net/download Or, click here for direct download to files, which includes CKFinder (license required). 3) Upload the 'fckeditor' directory to your root directory. 4) Apply this SQL patch... Code:
^ This will create a new FCKEditor entry in 'modules'. 5) In skin1/single/home.tpl Before... Code:
Code:
(Change to {https_location} if your admin uses SSL). If the FCKEditor doesn't load, try manually adding the full path instead, eg. Code:
6) PRODUCT DESCRIPTIONS In skin1/main/product_details.tpl Before... Code:
Code:
7) STATIC PAGES In skin1/admin/main/page_edit.tpl Before... Code:
Code:
Also, change... Code:
Code:
8 ) CATEGORIES In skin1/admin/main/category_modify.tpl Before... Code:
Code:
9 ) MANUFACTURERS In skin1/modules/Manufacturers/manufacturers.tpl Before... Code:
Code:
10) NEWS POSTINGS In skin1/modules/News_Management/news_messages_modify.tpl Before... Code:
Code:
Done. a) To use just the basic ToolbarSet, in each case change... Code:
Code:
b) You can customise your chosen ToolbarSet, or make your own in fckeditor/fckconfig.js c) To change the heights of the editors, in each case change... Code:
d) To enable the image upload system... i) In /fckeditor/editor/filemanager/connectors/php/config.php Change... Code:
Code:
UPDATE: Sept 2009 - FCKEditor has now become CKEditor
__________________
xcartmods.co.uk |
|||||||
|
#2
|
|||||||
|
|||||||
Re: Adding the FCKeditor HTML Editor
Nicely done as always Phil
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
Re: Adding the FCKeditor HTML Editor
Thanks for this post PhilJ. You helped me fix my FAQ manager.
__________________
Jeff S. http://www.icases.net X-Cart V4.1.6 A search engine that pays you! $.25/hour - click here What is AGLOCO? click here |
|||||||
#4
|
|||||||
|
|||||||
Re: Adding the FCKeditor HTML Editor
Strange one? I am using it on the static pages. It works on new entries. But does not appear when editing existing pages? It goes back to the default textarea. But I see the fck javascript to initiate it in the source code when I do a view source?
Any guess? Ok, its a little farther left of center. On some entries the editor does appear. Entries that are only a few lines. But most of these pages have "P" tags, tables, links, images, etc. If you edit these you get the default text area The cart is 4.1.7 the fckeditor is 2.4.2 I fixed it... I added oFCKeditor.Value = "{$page_content}"; This was the mistake. I took it out and now it works perfectly.
__________________
<><><><><><><><><><><><> Mike Parks X-Cart: 4.1.x Captain Jack Communications |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Adding the FCKeditor HTML Editor
Very nice upgrade.
Though, I wish the install put a seperate module inside the module section. Also, I wish the input boxes were a little larger.
__________________
X-Cart Gold v4.4.4 Apache v2.2.20 PHP v5.3.8 MySQL v5.1.56-log Linux kernel v2.6.18-238.19.1.el5xen |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: Adding the FCKeditor HTML Editor
How do you add the fckeditor for the language variables? I found the field for value text box. I inserted the above fckeditor code in languages.tpl. It doesn't work. It says it can't find value.
I don't get it. It should have found it. Any help would be great.
__________________
X-Cart Gold v4.4.4 Apache v2.2.20 PHP v5.3.8 MySQL v5.1.56-log Linux kernel v2.6.18-238.19.1.el5xen |
|||||||||
#7
|
|||||||||
|
|||||||||
Re: Adding the FCKeditor HTML Editor
I found the field to insert the fckeditor in languages.tpl.
The field is 'new_var_value'. The fckeditor is now in languages.tpl
__________________
X-Cart Gold v4.4.4 Apache v2.2.20 PHP v5.3.8 MySQL v5.1.56-log Linux kernel v2.6.18-238.19.1.el5xen |
|||||||||
#8
|
|||||||||
|
|||||||||
Re: Adding the FCKeditor HTML Editor
very nice mod
__________________
Web Design Web Design and Custom X-Cart Projects http://www.dataviking.com Mention the forums for discounts! x-cart Version 4.1.8 |
|||||||||
#9
|
|||||||
|
|||||||
Re: Adding the FCKeditor HTML Editor
Quote:
Add these 2 lines and set the size that you want Code:
__________________
<><><><><><><><><><><><> Mike Parks X-Cart: 4.1.x Captain Jack Communications |
|||||||
#10
|
|||||||
|
|||||||
Re: Adding the FCKeditor HTML Editor
UPDATE, here's an editor that is more lightweight than FCKeditor and is XHTML friendly (W3C compliant)
Try it here - http://demo.wymeditor.org Grab it here - http://www.xcartmods.co.uk/count/click.php?id=25
__________________
xcartmods.co.uk |
|||||||
|
|||
X-Cart forums © 2001-2020
|