fckeditor控件 字数限制 fckeditor控件 字数限制在哪里改啊! 我上网查到好像默认的是1000个字。。如果我想改成500呢?请问在哪里改啊!麻烦大家了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function checkLength(which) { var maxChars = 20; if (which.value.length > maxChars) {} } </script> <asp:TextBox ID="txtInput" runat="server" Width="200px" Height="60px" onkeydown="checkLength(this);" TextMode="MultiLine"></asp:TextBox>var oEditor=FCKeditorAPI.GetInstance('content');var content=oEditor.GetXHTML(true);// 获取编辑器中HTML内容function getEditorHTMLContents(EditorName) { var oEditor = FCKeditorAPI.GetInstance(EditorName); return(oEditor.GetXHTML(true));}// 获取编辑器中文字内容function getEditorTextContents(EditorName) { var oEditor = FCKeditorAPI.GetInstance(EditorName); return(oEditor.EditorDocument.body.innerText);} <form id="form1" runat="server"> <div> <asp:DataList ID="DataList1" runat="server" Width="742px"> <ItemTemplate> <%#Eval("id") %> <%#Eval("box") %> </ItemTemplate> </asp:DataList> <FCKeditorV2:FCKeditor ID="FCKeditor1" DefaultLanguage="zh-cn" runat="server"> </FCKeditorV2:FCKeditor> </div> <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /> </form> 前台的代码如上: asp.net用户控件 无法传值的问题 WebException 超时 ManagementObject初始化失败一般是什么原因造成的? 没有分了,问一个问题! (求解)asp.net中不能映射数据库路径!!! MARQUEE控件怎么用啊???高手!!!! 请问一个gridview的问题 如何在页面中显示一个变量的值? 有关多用户登录! who 有asp网上书店的源代码或下载地址,急盼,感谢万分 如何解决ASP.NET上传文件大小限制 求一小小段代码
var maxChars = 20;
if (which.value.length > maxChars)
{}
}
</script>
<asp:TextBox ID="txtInput" runat="server" Width="200px" Height="60px" onkeydown="checkLength(this);" TextMode="MultiLine"></asp:TextBox>var oEditor=FCKeditorAPI.GetInstance('content');
var content=oEditor.GetXHTML(true);
// 获取编辑器中HTML内容
function getEditorHTMLContents(EditorName) {
var oEditor = FCKeditorAPI.GetInstance(EditorName);
return(oEditor.GetXHTML(true));
}
// 获取编辑器中文字内容
function getEditorTextContents(EditorName) {
var oEditor = FCKeditorAPI.GetInstance(EditorName);
return(oEditor.EditorDocument.body.innerText);
}
<div>
<asp:DataList ID="DataList1" runat="server" Width="742px">
<ItemTemplate>
<%#Eval("id") %>
<%#Eval("box") %>
</ItemTemplate>
</asp:DataList>
<FCKeditorV2:FCKeditor ID="FCKeditor1" DefaultLanguage="zh-cn" runat="server">
</FCKeditorV2:FCKeditor>
</div>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
</form>
前台的代码如上: