• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
The Electric Toolbox Blog

The Electric Toolbox Blog

Linux, Apache, Nginx, MySQL, Javascript and PHP articles

  • Applications
  • FCKEditor
  • Apache
  • Windows
  • Contact Us
Home / FCKEditor: Using a custom configuration file

FCKEditor: Using a custom configuration file

A little while back I posted about how I upgrade FCKEditor when a new release comes out, and how I need to merge changes from my old fckconfig.js to the new one for the new release. I have since learned how to use a custom configuration file with FCKEditor which means no longer needing to merge changes into the new version of the file.

It’s really quite simple; you appear to be able to modify any configuration setting programmatically with FCKEditor and there’s a configuration setting called "CustomConfigurationsPath" which specifies the location of your customer file which is then loaded after the main fckconfig.js

In PHP, you would do it like this (in other programming languages it will be similar):

$FCKeditor = new FCKeditor('myinstance');
$FCKeditor->Config["CustomConfigurationsPath"] = "/path/to/myconfig.js";
... other options ...
$FCKeditor->Create();

This tells FCKEditor to load the myconfig.js file and supplement and override the configurations options in the main fckconfig.js file.

Check Out These Related posts:

  1. Using the FCKEditor HTML Editor with PHP
  2. Write content into a dynamic Javascript popup from FCKEditor
  3. Remove “Browse” button and “Upload” tab in FCKEditor Image Properties dialog
  4. Specify custom styles with FCKeditor

Filed Under: FCKEditor

Primary Sidebar

Categories

  • Apache
  • Applications
  • Article
  • Case Studies
  • Email Servers
  • FCKEditor
  • HTML And CSS
  • Javascript
  • Linux/Unix/BSD
  • Microsoft SQL Server
  • Miscellaneous Postings
  • MySql
  • Networking
  • Nginx Web Server
  • Offsite Articles
  • OSX
  • PHP
  • Quick Tips
  • RFC – Request for Comments
  • SilverStripe
  • VMWare
  • VPN
  • Windows
  • WordPress

Recent Posts

  • Vim Show Line Numbers
  • Add User To Group Linux
  • Chmod 777 Tutorial
  • How to Copy Directory Linux
  • Linux create user

Copyright © 2021. ElectricToolBox. All Rights Reserved.

  • Contact Us
  • Copyright Info
  • Privacy Policy
  • Sitemap