Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Adding the FCKeditor HTML Editor
 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #21  
Old 02-08-2008, 01:46 PM
  PhilJ's Avatar 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Location: UK
Posts: 3,576
 

Default 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.
Reply With Quote
  #22  
Old 02-09-2008, 05:41 AM
 
IanJacklin IanJacklin is offline
 

Member
  
Join Date: Nov 2007
Posts: 25
 

Default 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
Reply With Quote
  #23  
Old 06-12-2008, 05:25 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 288
 

Default Re: Adding the FCKeditor HTML Editor

how would you use this after install?
__________________
Tool Experts
X-Cart DB Version: 4.1.12 GOLD
Reply With Quote
  #24  
Old 10-17-2008, 01:44 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,460
 

Default 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
Reply With Quote
  #25  
Old 10-31-2008, 07:09 AM
 
shorelineoftahoe shorelineoftahoe is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 30
 

Default 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
Reply With Quote
  #26  
Old 11-20-2008, 10:38 PM
  WhiteDoveGifts's Avatar 
WhiteDoveGifts WhiteDoveGifts is offline
 

X-Adept
  
Join Date: Oct 2006
Location: Maarssen, The Netherlands
Posts: 474
 

Default 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...
Reply With Quote
  #27  
Old 01-11-2009, 12:13 PM
  fmoses's Avatar 
fmoses fmoses is offline
 

Senior Member
  
Join Date: Apr 2008
Posts: 155
 

Default 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>
Attached Thumbnails
Click image for larger version

Name:	nofckeditor.jpg
Views:	46
Size:	157.5 KB
ID:	1316  
__________________
www.anythingindian.biz
X-Cart Pro 4.1.9
Reply With Quote
  #28  
Old 01-12-2009, 12:34 PM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default 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
Reply With Quote
  #29  
Old 03-01-2009, 12:28 AM
 
chrisinoz chrisinoz is offline
 

eXpert
  
Join Date: Aug 2004
Location: Australia
Posts: 248
 

Default Re: Adding the FCKeditor HTML Editor

Quote:
Originally Posted by shorelineoftahoe
Just an FYI for language variables:

*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');
oFCKeditor.BasePath = "../fckeditor/";
oFCKeditor.Height="200";
oFCKeditor.ToolbarSet="Default";
oFCKeditor.ReplaceTextarea() ;
</script>

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
Reply With Quote
  #30  
Old 03-01-2009, 12:49 AM
 
chrisinoz chrisinoz is offline
 

eXpert
  
Join Date: Aug 2004
Location: Australia
Posts: 248
 

Default 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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:53 AM.

   

 
X-Cart forums © 2001-2018