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!

Leave a Reply

电子邮件地址不会被公开。 必填项已用*标注