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>