Controls:
<% @ Register tagprefix = "fckeditorv2" namespace = "fredck. fckeditorv2" assembly = "fredck. fckeditorv2" %>
<Fckeditorv2: FCKeditor id = "fckeditor1" runat = "server"> </fckeditorv2: FCKeditor>
CS: protected fredck. fckeditorv2.fckeditor fckeditor1;
Code:
<SCRIPT type = "text/JavaScript" src = "http://www.cnblogs.com/fckeditor.js"> </SCRIPT>
<Script language = "JavaScript">
Function checkform ()
{
VaR oeditor = fckeditorapi. getinstance ('<% = This. fckeditor1.clientid %> ');
Document. getelementbyid ("oedit"). value = oeditor. gethtml ();
Oeditor. sethtml ("fdsfa ");
Return true;
}
</SCRIPT>
Form onsubmit = "Return checkform ();"
<Input type = "hidden" id = "oedit" name = "oedit" value = ""/>
Background
Request. Form ["oedit"]. tostring ()
Others:
VaR oeditor = fckeditorapi. getinstance ('fckedit ');
To obtain its content
Oeditor. sethtml ("Task Force ");
To set its content
When the header file is added with validaterequest = "false", no dangerous characters will appear.