[Dnn universal control] texteditor

Source: Internet
Author: User

I was reading the text editor some time ago. How can I flexibly apply the text editor to dnn? After reading the Program , we found that it was implemented through a texteditor. ascx control in the controls folder.
the user controls in the controls folder can be used in other modules, including third-party modules and management modules. Define the user control of the user control in the controls folder as universal control . (A core user control was defined some time ago. Now it seems inappropriate to call it page composition core controls more precisely)

Let's talk about the attributes of the control, hoping to be useful to everyone.
Choosemode:Enable/disable switching between a common text editor and a rich text editor. The default setting is enable.
Chooserender:Whether to enable the normal text editor mode to determine the Text Content Rendering mode. The default mode is enable.
Defaultmode:The Default Editor mode is rich text ("rich" or "Basic ")
Htmlencode:Whether to encode the content in HTML (that is, escape some characters, such as: "<", ">", etc)
Mode:Current editor mode: Rich Text mode or general mode ("rich" or "Basic ")
Text:Control text content
Height:Control height
Width:Widget width
Textrendermode:Set the text rendering mode {raw | HTML | text} In general text editor mode}
Raw: it is a natural way to display the original text.
HTML: convert text format to HTML format (that is, replace all carriage returns with "" And line breaks with "<br/>)
Text: convert HTML format to text format (replace all blank characters, such as tabs, and replace all <br> labels with line breaks)
Richtext:Rich Text Editor provider

The usage is as follows:

< Dnn: texteditor ID = "Tecontent" Runat = "Server" Height = "400" Width = "700" Choosemode = "False" Chooserender = "False" Mode = "Basic" > </ Dnn: texteditor >

More>

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.