页面上存在多个FckEditor编辑器的验证方法
时间:2021-01-26 15:22:28|栏目:|点击: 次
有时我们需要在一个页面上使用多个Fck的实例,首先需要按照id获取fck的实例。例如:
<FCKeditorV2:FCKeditor ID="fckDescription" runat="server" ToolbarSet="Basic" Height="250">
</FCKeditorV2:FCKeditor>
使用FCKeditorAPI.GetInstance获取Fck实例。
function FCKeditor_OnComplete(editorInstance)
{
oEditer = FCKeditorAPI.GetInstance('fckDescription');
}
使用这个方法就可以处理多个Fck的情况。
FCKeditorAPI介绍
复制代码 代码如下:
<FCKeditorV2:FCKeditor ID="fckDescription" runat="server" ToolbarSet="Basic" Height="250">
</FCKeditorV2:FCKeditor>
使用FCKeditorAPI.GetInstance获取Fck实例。
复制代码 代码如下:
function FCKeditor_OnComplete(editorInstance)
{
oEditer = FCKeditorAPI.GetInstance('fckDescription');
}
使用这个方法就可以处理多个Fck的情况。
FCKeditorAPI介绍
上一篇:Lua中for循环语句的使用教程
栏 目:
下一篇:Powershell小技巧之通过EventLog查看近期电脑开机和关机时间
本文地址:http://www.codeinn.net/misctech/51349.html






