SharePoint has many easy-to-use controls. If we develop webpart or deploy applications in layoutsProgramPage, you can directly use these system controls.
SharePoint has two rich text controls: inputformtextbox and htmleditor. See the following picture:
The above is inputformtextbox, and the following is htmleditor.
The inputformtextbox name control is Microsoft. Sharepoint. webcontrols, And the htmleditor namespace is Microsoft. Sharepoint. Publishing. webcontrols.
To directly use these two controls on the page, you can use the following code:
<% @ Register tagprefix = "SharePoint" namespace = "Microsoft. Sharepoint. webcontrols" assembly = "Microsoft. Sharepoint, version = 12.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c" %>
<SharePoint: inputformtextbox Title = "" class = "MS-input" width = "800px" id = "txttestrecord" runat = "server" textmode = "multiline" rows = "15" richtext =" true "allowhyperlink =" true "richtextmode =" fullhtml "/>
-----------------------
<% @ Register tagprefix = "Your pointpublish" namespace = "Microsoft. sharepoint. publishing. webcontrols "assembly =" Microsoft. sharepoint. publishing, version = 12.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c "%>
<Export pointpublish: htmleditor width = "800px" id = "txttestrecord" runat = "server" id = "editor1"/>