FCKeditor modification records

Source: Internet
Author: User
FCKeditor modification records

FCKeditor version 2.6.4.1

Date: 2009-07-27

1. Chinese settings
/Fckconfig. js file 62 lines
Fckconfig. defaultlanguage = 'en ';
Change
Fckconfig. defaultlanguage = 'zh-cn ';

/Fckconfig. js file 62 lines
Fckconfig. fontnames = 'arial; Comic Sans MS; Courier New; tahoma; Times New Roman; verdana ';
Change
Fckconfig. fontnames = '; _ gb2312; Arial; Comic Sans MS; Courier New; tahoma; Times New Roman; verdana ';

2. Modify the menu
/Fckconfig. js file line 1
Fckconfig. toolbarsets ["default"] = [
['Source', 'docprops', '-', 'save', 'newpage', 'preview', '-', 'templates'],
['Cut ', 'copy', 'paste', 'pastetext ', 'pasteword','-', 'print', 'spellcheck'],
['Undo ', 'redo', '-', 'Find ', 'replace', '-', 'selectall', 'removeformat'],
['Form', 'checkbox', 'Radio ', 'textfield', 'textta', 'select', 'click', 'imagebutton ', 'hiddenfield'],
'/',
['Bold ', 'italic', 'underline', 'strikethangout', '-', 'subscript', 'superscript'],
['Orderedlist', 'unorderedlist', '-', 'outdent ', 'indent', 'blockquote ', 'creatediv'],
['Justifyleft', 'justifycenter', 'justifyright', 'justifyfull'],
['Link', 'unlink', 'anchor '],
['Image', 'flash', 'table', 'rule', 'smilil', 'specialchar ', 'pagebreak'],
'/',
['Style', 'fontformat', 'fontname', 'fontsize'],
['Textcolor', 'bgcolor'],
['Fitwindow', 'showbuckets', '-', 'about'] // No comma for the last row.
];
Change
Fckconfig. toolbarsets ["default"] = [
['Source', 'preview', 'removeformat', 'fitwindow', 'showblocks '],
['Cut ', 'copy', 'paste', 'pastetext ', 'pasteword','-', 'print', 'spellcheck'],
['Undo ', 'redo', '-', 'Find ', 'replace', '-', 'selectall'],
['Form', 'checkbox', 'Radio ', 'textfield', 'textea ', 'select', 'button', 'hiddenfield ', 'imagebutton'],
'/',
['Bold ', 'italic', 'underline', 'strikethangout', '-', 'subscript', 'superscript'],
['Orderedlist', 'unorderedlist', '-', 'outdent ', 'indent', 'blockquote ', 'creatediv'],
['Justifyleft', 'justifycenter', 'justifyright', 'justifyfull'],
['Link', 'unlink', 'anchor '],
['Image', 'flash', 'table', 'rule', 'smilil', 'specialchar ', 'pagebreak'],
'/',
['Style', 'fontformat', 'fontname', 'fontsize'],
['Textcolor', 'bgcolor']
];

3. Modify the style
/Fckconfig. js file 45 lines
Fckconfig. skinpath = fckconfig. basepath + 'Skins/default /';
Change
Fckconfig. skinpath = fckconfig. basepath + 'Skins/silver-narrow /';

4. Modify the emoticons
/Fckconfig. js file line 1
Fckconfig. smileypath = fckconfig. basepath + 'images/smiley/MSN /';
Fckconfig. smileyimages = comment '];
Fckconfig. smileycolumns = 8;
Fckconfig. smiley+wwidth = 320;
Fckconfig. smiley1_wheight = 210;
Change
Fckconfig. smileypath = fckconfig. basepath + 'images/smiley/QQ /';
Fckconfig. smileyimages = comment ']
Fckconfig. smileycolumns = 8;
Fckconfig. smiley+wwidth = 320;
Fckconfig. smiley1_wheight = 180;

5. Integrate the ckfinder image browser
(*) My ckfinderProgramLocation/Editor/ckfinder/

/Fckconfig. js file line 1
VaR _ filebrowserlanguage = 'php'; // ASP | aspx | CFM | lasso | Perl | PHP | py
VaR _ quickuploadlanguage = 'php'; // ASP | aspx | CFM | lasso | Perl | PHP | py

// Don't care about the following two lines. It just calculates the correct Connector
// Extension to use for the default file browser (Perl uses "cgi ").
VaR _ filebrowserextension = _ filebrowserlanguage = 'perl '? 'Cgi ': _ filebrowserlanguage;
VaR _ quickuploadextension = _ quickuploadlanguage = 'perl '? 'Cgi ': _ quickuploadlanguage;

fckconfig. linkbrowser = true;
fckconfig. linkbrowserurl = fckconfig. basepath + 'filemanager/Browser/default/browser.html? Connector = '+ encodeuricomponent (fckconfig. basepath + 'filemanager/ORS ors/'+ _ filebrowserlanguage +'/connector. '+ _ filebrowserextension);
fckconfig. linkbrowser1_wwidth = fckconfig. screenwidth * 0.7; // 70%
fckconfig. linkbrowserwindowheight = fckconfig. screenheight * 0.7; // 70%

fckconfig. imagebrowser = true;
fckconfig. imagebrowserurl = fckconfig. basepath + 'filemanager/Browser/default/browser.html? Type = Image & connector = '+ encodeuricomponent (fckconfig. basepath + 'filemanager/ORS ors/'+ _ filebrowserlanguage +'/connector. '+ _ filebrowserextension);
fckconfig. imagebrowser1_wwidth = fckconfig. screenwidth * 0.7; // 70%;
fckconfig. imagebrowserwindowheight = fckconfig. screenheight * 0.7; // 70%;

fckconfig. flashbrowser = true;
fckconfig. flashbrowserurl = fckconfig. basepath + 'filemanager/Browser/default/browser.html? Type = flash & connector = '+ encodeuricomponent (fckconfig. basepath + 'filemanager/ORS ors/'+ _ filebrowserlanguage +'/connector. '+ _ filebrowserextension);
fckconfig. flashbrowser1_wwidth = fckconfig. screenwidth * 0.7; // 70%;
fckconfig. flashbrowserwindowheight = fckconfig. screenheight * 0.7; // 70%;

fckconfig. linkupload = true;
fckconfig. linkuploadurl = fckconfig. basepath + 'filemanager/connectors/'+ _ quickuploadlanguage +'/upload. '+ _ quickuploadextension;
fckconfig. linkuploadallowedextensions = ". (7z | AIFF | ASF | Avi | BMP | CSV | Doc | FLA | FLV | GIF | GZ | gzip | JPEG | JPG | mid | mov | MP3 | MP4 | MCM | MPEG | MPG | ODS | ODT | PDF | PNG | PPT | pxd | QT | Ram | RAR | RM | RMI | rmvb | RTF | SDC | sitd | SWF | SXC | Sxw | tar | tgz | TIF | tiff | TXT | ASD | WAV | WMA | WMV | XLS | XML | zip) $ "; // empty for all
fckconfig. linkuploaddeniedextensions = ""; // empty for no one

fckconfig. imageupload = true;
fckconfig. imageuploadurl = fckconfig. basepath + 'filemanager/connectors/'+ _ quickuploadlanguage +'/upload. '+ _ quickuploadextension + '? Type = image';
fckconfig. imageuploadallowedextensions = ". (JPG | GIF | JPEG | PNG | BMP) $ "; // empty for all
fckconfig. imageuploaddeniedextensions = ""; // empty for no one

Fckconfig. flashupload = true;
Fckconfig. flashuploadurl = fckconfig. basepath + 'filemanager/connectors/'+ _ quickuploadlanguage +'/upload. '+ _ quickuploadextension + '? Type = flash ';
Fckconfig. flashuploadallowedextensions = ". (SwF | FLV) $"; // empty for all
Fckconfig. flashuploaddeniedextensions = ""; // empty for no one

Change
VaR _ filebrowserlanguage = 'aspx '; // ASP | aspx | CFM | lasso | Perl | PHP | py
VaR _ quickuploadlanguage = 'aspx '; // ASP | aspx | CFM | lasso | Perl | PHP | py

// Don't care about the following two lines. It just calculates the correct Connector
// Extension to use for the default file browser (Perl uses "cgi ").
VaR _ filebrowserextension = _ filebrowserlanguage = 'perl '? 'Cgi ': _ filebrowserlanguage;
VaR _ quickuploadextension = _ quickuploadlanguage = 'perl '? 'Cgi ': _ quickuploadlanguage;

Fckconfig. linkbrowser = true;
Fckconfig. linkbrowserurl = fckconfig. basepath + 'ckfinder/ckfinder.html ';
Fckconfig. linkbrowser1_wwidth = fckconfig. screenwidth * 0.7; // 70%
Fckconfig. linkbrowserwindowheight = fckconfig. screenheight * 0.7; // 70%

Fckconfig. imagebrowser = true;
Fckconfig. imagebrowserurl = fckconfig. basepath + 'ckfinder/ckfinder.html? Type = images ';
Fckconfig. imagebrowser1_wwidth = fckconfig. screenwidth * 0.7; // 70%;
Fckconfig. imagebrowserwindowheight = fckconfig. screenheight * 0.7; // 70%;

Fckconfig. flashbrowser = true;
Fckconfig. flashbrowserurl = fckconfig. basepath + 'ckfinder/ckfinder.html? Type = flash ';
Fckconfig. flashbrowser1_wwidth = fckconfig. screenwidth * 0.7; // 70%;
Fckconfig. flashbrowserwindowheight = fckconfig. screenheight * 0.7; // 70%;

fckconfig. linkupload = true;
fckconfig. linkuploadurl = fckconfig. basepath + 'ckfinder/CORE/connector/aspx/connector. aspx? Command = quickupload & type = files ';
fckconfig. linkuploadallowedextensions = ". (7z | AIFF | ASF | Avi | BMP | CSV | Doc | FLA | FLV | GIF | GZ | gzip | JPEG | JPG | mid | mov | MP3 | MP4 | MCM | MPEG | MPG | ODS | ODT | PDF | PNG | PPT | pxd | QT | Ram | RAR | RM | RMI | rmvb | RTF | SDC | sitd | SWF | SXC | Sxw | tar | tgz | TIF | tiff | TXT | ASD | WAV | WMA | WMV | XLS | XML | zip) $ "; // empty for all
fckconfig. linkuploaddeniedextensions = ""; // empty for no one

fckconfig. imageupload = true;
fckconfig. imageuploadurl = fckconfig. basepath + 'ckfinder/CORE/connector/aspx/connector. aspx? Command = quickupload & type = images ';
fckconfig. imageuploadallowedextensions = ". (JPG | GIF | JPEG | PNG | BMP) $ "; // empty for all
fckconfig. imageuploaddeniedextensions = ""; // empty for no one

Fckconfig. flashupload = true;
Fckconfig. flashuploadurl = fckconfig. basepath + 'ckfinder/CORE/connector/aspx/connector. aspx? Command = quickupload & type = flash ';
Fckconfig. flashuploadallowedextensions = ". (SwF | FLV) $"; // empty for all
Fckconfig. flashuploaddeniedextensions = ""; // empty for no one

6. custom plug-ins

Plug-in production can refer to the address http://www.cnblogs.com/goody9807/archive/2008/05/14/1197100.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.