Add a reference as follows:
<script src= ". /ueditor/ueditor.config.js "type=" Text/javascript "></script> <script src=". /ueditor/ueditor.all.js "type=" Text/javascript "></script> <link href=". /ueditor/themes/default/css/ueditor.css "rel=" stylesheet "type=" Text/css "/>
The front code is as follows:
<textarea runat="Server"Id="Scontainer"style="width:600px; height:200px"Type="Text/plain"></textarea> <script type="Text/javascript">varUE = Ue.geteditor ('Scontainer'); function GetContent () {varEditor = Ue.geteditor ("Scontainer"). GetContent ();//Get editor//document.getElementById ("Txtscontent"). Value = Editor; } </script>
Both the assignment and the value can be taken directly from the ID, and the configuration file is as follows:
The 1.4.3 version does not require the configuration URL property, but the 1.2.3 version needs to be written to the URL, in the 22nd line of code in the Ueditor.config.js file.
. NET Configuration Ueditor