| ||||||||||
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 |
#21
|
|||||||
|
|||||||
Re: Adding the FCKeditor HTML Editor
The config.php file should definitely be there, maybe get the latest version.
Re. webmaster mode.. no, it'd cause more problems than it's worth, always use a decent text editor to modify your template files.
__________________
xcartmods.co.uk |
|||||||
#22
|
|||||||
|
|||||||
Re: Adding the FCKeditor HTML Editor
Phil I have the latest version still can't find the config.php anyway dont worry. Thanks for your help Phil
__________________
Ver 4.1.8 |
|||||||
#23
|
|||||||
|
|||||||
Re: Adding the FCKeditor HTML Editor
how would you use this after install?
__________________
Tool Experts X-Cart DB Version: 5.4.1.49 Windows |
|||||||
#24
|
|||||||||
|
|||||||||
Re: Adding the FCKeditor HTML Editor
This rocks ... X-Cart might want to think about adding this within their 4.2 release.
Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#25
|
|||||||
|
|||||||
Re: Adding the FCKeditor HTML Editor
Just an FYI for language variables:
You can change all language variables to have the FCKeditor by inserting this: <script type="text/javascript"> var oFCKeditor = new FCKeditor('var_{$lbl.name}'); oFCKeditor.BasePath = "../fckeditor/"; oFCKeditor.Height="200"; oFCKeditor.ToolbarSet="Default"; oFCKeditor.ReplaceTextarea() ; </script> Right before: {/foreach} <tr> <td colspan="2" class="SubmitBox"> in skin1/admin/languages.tpl. You can also get any new language variables to have the editor by inserting this: <script type="text/javascript"> var oFCKeditor = new FCKeditor('new_var_value'); oFCKeditor.BasePath = "../fckeditor/"; oFCKeditor.Height="200"; oFCKeditor.ToolbarSet="Default"; oFCKeditor.ReplaceTextarea() ; </script> Right before: </form> {/capture} {include file="dialog.tpl" content=$smarty.capture.dialog title=$lng.lbl_add_new_language extra='width="100%"'} at the bottom of the same .tpl. *HOWEVER* Adding FCKeditor to all language variables can drastically slow down a page's load time. I recommend only adding it for the language variables that really need it, like txt_welcome. Here's the initial info I inserted at the end of the form called languagespostform (around line 200, right before </form>): <script type="text/javascript"> var oFCKeditor = new FCKeditor('var_txt_welcome'); var oFCKeditor = new FCKeditor('var_txt_conditions_customer'); var oFCKeditor = new FCKeditor('var_txt_privacy_statement'); oFCKeditor.BasePath = "../fckeditor/"; oFCKeditor.Height="200"; oFCKeditor.ToolbarSet="Default"; oFCKeditor.ReplaceTextarea() ; </script> I hope this helps someone else.
__________________
xcart v. 4.18-4.4 |
|||||||
#26
|
|||||||||
|
|||||||||
Re: Adding the FCKeditor HTML Editor
Hi everyone,
I have installed Phil's FAQ Manager (with the FCK editor included) but have troubles changing the FCK editor to the right path. Right now it's not working because I have it installed in my teststore (in a subfolder of my store). The default install of FAQ manager directs everything to the root. This is the error I am having: The requested URL /fckeditor/editor/fckeditor.html was not found on this server. I found several files with the path to /fckeditor but not the right one. Can anyone help out here? Nico
__________________
____________________________ X-Cart Gold 4.1.10 EWD Hosting | CDSEO Pro | One Page Checkout | Smart Search | Telafirma Dynamic Images | X-AOM | Product Importer Pro and many custom mods and tweaks found here... |
|||||||||
#27
|
|||||||||
|
|||||||||
Re: Adding the FCKeditor HTML Editor
Can't seem to get this work, uploaded fckeditor (version 2.6.3) to the root, and modified all the files in post 1 as per Phils instructions. Unfortunately there is nothing showing up when i try to add a product or do anything else. there is only the html editing box, and the fckeditor is not there. Any thoughts, or anything else i can try or check? I'm inserting the code like such in between table and form of each file mentioned
</table> <script type="text/javascript"> var oFCKeditor = new FCKeditor('message[body]'); oFCKeditor.BasePath = "../fckeditor/"; oFCKeditor.Height="200"; oFCKeditor.ToolbarSet="Default"; oFCKeditor.ReplaceTextarea() ; </script> </Form> |
|||||||||
#28
|
|||||||||
|
|||||||||
Re: Adding the FCKeditor HTML Editor
X-Cart Development Team should think about and offer it by default editor inside all future versions. This is the best WYSIWYG editor I've ever used. Nice post!
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
#29
|
|||||||
|
|||||||
Re: Adding the FCKeditor HTML Editor
Quote:
Thanks but this does not work for me in 4.1.8 I get ERROR: Textarea with this id number var_txt_welcome not found in skin1/admin/main/languages.tpl. Cheers
__________________
Chris G Humble web designer Version 4.07 - 4.45 |
|||||||
#30
|
|||||||
|
|||||||
Re: Adding the FCKeditor HTML Editor
A general problem I have just noticed with this is that how does a client delete unwanted files and images that are loaded up to the userfiles folder - the standard fck file manager does not have that capacity - without purchasing their image manager CKFinder.
Cheers
__________________
Chris G Humble web designer Version 4.07 - 4.45 |
|||||||
|
|||
X-Cart forums © 2001-2020
|