Corresponding source code: http://download.csdn.net/source/889495
Fck
Editor
The language of the control is adjustable, and there are two ways to adjust it.
First of all, set up a JS file myconfig.js, here I put it in
WebRootDirectory.
Fckconfig.autodetectlanguage=false; Automatic detection of language,
default English--fckconfig.defaultlanguage = ' en ';
mode One: Global approach, all fckeditor controls for the entire site
Direct modification
Webroot/fckeditor/fckconfig.jsfile, the following parameters
Through this file to load their own configuration of the file, so the site will be used under the corresponding Change//here the main path from the project began Fckconfig.customconfigurationspath =
'/fckedittest/myconfig.js ';
Mode two: Local mode, for a page of the FCKeditor control
Set up when introduced in a page
<script type= "Text/javascript" > var ofckeditor = new FCKeditor (' FCKeditor1 '); Ofckeditor.basepath = "fckeditor/"; ofckeditor.value= "Initial Value"; Ofckeditor.toolbarset= "Default";
//Valid only for current page
ofckeditor.config[
" Customconfigurationspath"]= "/fckedittest/myconfig.js "Ofckeditor.create (); </script>
Corresponding source code: http://download.csdn.net/source/889495