Ckeditor3.6.2 and ckfinder2.2.1 for ASP. NET deployment settings perfect solution (2)

Source: Internet
Author: User

5. Configure ckeditor

Modify ckeditor \ config. js as follows:

Ckeditor. editorconfig = function (config) {var ckpath = '. '; // the path of the ckeditor folder. It is used to set config for the following six ckfinder paths. filebrowserbrowseurl = ckpath + '/ckfinder/ckfinder.html'; // view path of the uploaded file config. filebrowserimagebrowseurl = ckpath + '/ckfinder/ckfinder.html? Type = images '; // The Image Upload path config. filebrowserflashbrowseurl = ckpath +'/ckfinder/ckfinder.html? Type = flash '; // upload the flash viewing path config. filebrowseruploadurl = ckpath +'/ckfinder/CORE/connector/aspx/connector. aspx? Command = quickupload & type = files '; // save path of the uploaded file config. filebrowserimageuploadurl = ckpath +'/ckfinder/CORE/connector/aspx/connector. aspx? Command = quickupload & type = images '; // Save the Image Upload path config. filebrowserflashuploadurl = ckpath +'/ckfinder/CORE/connector/aspx/connector. aspx? Command = quickupload & type = flash '; // upload the flash storage path // define changes to default configuration here. for example: config. language = 'zh-cn'; // configuration language // config. uicolor = '# fff'; // background color // config. width = 400; // width // config. height = 400; // height config. skin = 'v2'; // editor style // cancel the "drag to change size" function config. resize_enabled = false; // basic toolbar // config. toolbar = "Basic"; // All-Around toolbar // config. toolbar = "full"; // customize the toolbar config. toolbar = [['source', '-', 'preview'], ['cut ', 'copy', 'paste', 'pastetext ', 'pastefromword'], ['undo ', 'redo', '-', 'Find ', 'replace', '-', 'selectall', 'removeformat'], ['numberedlist ', 'bulletedlist', '-', 'outdent ', 'indent', 'blockquote', 'showblok'], '/', ['bold ', 'italic ', 'underline', 'strike', '-', 'subscript', 'superscript'], ['justifyleft', 'justifycenter', 'justifyright', 'justifyblock'], ['link', 'unlink', 'anchor '], ['image', 'flash', 'table', 'horizontalrule', 'specialchar'],'/', ['styles ', 'format', 'font', 'fontsize'], ['textcolor', 'bgcolor'], ['maxilize ','-', 'about']; // ckfinder. setupckeditor (null, '/ckfinder /');};

You can modify attributes such as the toolbar as needed.

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.