How to customize dnn FCKeditor

Source: Internet
Author: User
Tags dnn

First, let's briefly introduce the source of Rich Text Editor (rich texteditor) in dnn, which is also known as the online web editor. The first dnn version was integrated with freetextbox, however, due to the commercialization of freetextbox and its own freetextbox is not particularly useful, due to the open source nature of dnn, The FCKeditor is replaced. The following are some features of FCKeditor:
1) compatibility with multiple browsers, including IE 5.5 + (Windows), Firefox 1.0 +, Mozilla 1.3 +, and Netscape 7 +
2) supports XHTML 1.0
3) supports CSS
4) EDIT font attributes
5) cut, paste, undo, and repeat
6) paste the document from word and clear the format automatically
7) insert and upload images
8) edit a table
9) insert form fields and their child elements
10) supports context menu
11) customizable Toolbar
12) skin support
13) plugin mode support
14) spelling check Program
15) multi-language support and automatic user language detection.
16) Lightweight and fast
17) Automatic browser detection and customization
18) multiple types of support Programming Language Including ASP, CGI, PHP, ASP. NET, Java, ColdFusion, Python, and other scripts.
19) Support for developer installation and API Programming
20) Easy to use!
21) Open Source
Here we will focus on how to customize the FCKeditor of dnn. Before that, we will briefly describe the directory structure of FCKeditor in dnn. Currently, FCKeditor appears in dnn as an htmleditorproviders, that is, dnn has integrated FCKeditor and provided a default providersl for management. In the future, it will be convenient to replace other providers. I think this is the charm of providers in dnn, programmers who have developed dnn are clear, and the root directory of FCKeditor is $ rootwebsite/providers/htmleditorproviders/fck, the main directory related to how to customize FCKeditor is the default "Custom" directory added by the FCKeditor and dnn core. If you open these two directories, you will be clear, in fact, the FCKeditor directory contains all the default FCKeditor items, such as skins, plugins, and Lang (Language Pack). Custom is some of the modifications that dnn has customized for the default FCKeditor. for example, the default dnn editor toolbar attribute is added:

Fckconfig. toolbarsets [ " Dnndefault " ] = [
[ ' Source ' , ' Preview ' , ' - ' , ' Templates ' ],
[ ' Cut ' , ' Copy ' , ' Paste ' , ' Pastetext ' , ' Pasteword ' , ' - ' , ' Print ' , ' Spellcheck ' ],
[ ' Undo ' , ' Redo ' , ' - ' , ' Find ' , ' Replace ' , ' - ' , ' Selectall ' , ' Removeformat ' ],
[ ' Bold ' , ' Italic ' , ' Underline ' , ' Strikethrough ' , ' - ' , ' Subscript ' , ' Superscript ' ],
[ ' Orderedlist ' , ' Unorderedlist ' , ' - ' , ' Outdent ' , ' Indent ' ],
[ ' Justifyleft ' , ' Justifycenter ' , ' Justifyright ' , ' Justifyfull ' ],
[ ' Link ' , ' Unlink ' , ' Anchor ' ],
[ ' Image ' , ' Flash ' , ' Table ' , ' Rule ' , ' Smiley ' , ' Specialchar ' , ' Pagebreak ' ],
[ ' Style ' , ' Fontformat ' ], [ ' Fontname ' , ' Fontsize ' ],
[ ' Textcolor ' , ' Bgcolor ' ],
[ ' Fitwindow ' , ' - ' , ' About ' ]
];

More information... (http://www.dnnsun.com/Community/BaldwinsBlog/tabid/67/EntryID/32/Default.aspx)

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.