首页 > 运营 > 软件工具 > 正文

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

2020-10-06 22:56: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介绍
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表