Sealyu

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

            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            618 隨筆 :: 87 文章 :: 225 評(píng)論 :: 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 閱讀(1383) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): Javascript
          主站蜘蛛池模板: 北辰区| 五莲县| 即墨市| 河曲县| 东乡族自治县| 青田县| 龙里县| 三门县| 桃源县| 双桥区| 邯郸县| 西青区| 阿巴嘎旗| 永丰县| 衢州市| 七台河市| 阿尔山市| 霍城县| 东方市| 眉山市| 莱阳市| 桦川县| 镇雄县| 铜陵市| 昔阳县| 剑河县| 灌南县| 怀柔区| 祁阳县| 海兴县| 三门峡市| 紫云| 江山市| 株洲县| 得荣县| 玉门市| 体育| 阿鲁科尔沁旗| 平安县| 德钦县| 韩城市|