首页 > 网站 > 软件应用 > 正文

页面上存在多个FckEditor编辑器的验证方法

2024-09-06 19:16:42
字体:
来源:转载
供稿:网友
有时我们需要在一个页面上使用多个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介绍
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表