Language adjustment of FCKeditor control in JSP __jsp

Source: Internet
Author: User

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

Related Article

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.