Sealyu

--- 博客已迁移至: http://www.sealyu.com/blog

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  618 随笔 :: 87 文章 :: 225 评论 :: 0 Trackbacks

FCKeditor offers a complete JavaScript API so you can interact with it once the editor is loaded and running.

Once loaded, the editor registers a global object called FCKeditorAPI. This object offers the entry point to interact with any editor instance placed in a page.

NOTE: The FCKeditorAPI object will not be available during the page load. You need to wait for the editor to be loaded to use it.

Often, I see that people complain about a JavaScript error, “FCKeditorAPI is not defined”, when they try to use FCKeditorAPI.

For example

The following code will throw a JavaScript error when you try to use the FCKeditorAPI -

You can resolve the JavaScript error by adding a line of code (Line # 4) as shown below -

Hope this helps!

posted on 2010-06-22 00:12 seal 阅读(1348) 评论(0)  编辑  收藏 所属分类: Javascript

只有注册用户登录后才能发表评论。


网站导航: