当前位置:主页 > >

页面上存在多个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介绍

您可能感兴趣的文章:

相关文章