Ticket #3315 (closed Bug: invalid)

Opened 5 years ago

Last modified 5 years ago

addIframe method is not available by default

Reported by: Senthil Owned by:
Priority: High Milestone: CKEditor 3.0
Component: General Version:
Keywords: Oracle Cc: Senthil

Description

When i call the addIframe method, browser returns an error as "addIframe is not a function"

As per the discussion with Martin, to use this function i have to add iframeDialog plugin to my config.Toolbar. Yes, this can be added to the default config file but our customer will be overriding this default config file with their own custom config file. Thus addIframe will not work for the customer since they have overidden the default config file.

Our existing 2.6 plugins are using the following code to render the dialog: Ex: FCKCommands.RegisterCommand( 'CustomLinks', new FCKDialogCommand( 'Oracle', 'Oracle',URL, 700, 600 ) ) ;

But in CKEditor3.0, i couldn't invoke the addIframe method since it is not available by default.

To support the 2.6 plugins, please make this function available by default.

Change History

comment:1 Changed 5 years ago by fredck

  • Status changed from new to closed
  • Resolution set to invalid

That's nothing to be fixed in the editor in this sense. Everything depends on the way the editor is configured and integration in your system.

Currently, you already have several options to make it work well in your case, avoiding your end users changing your internal settings:

  • Recommended method: set the necessary settings directly into the page, when creating the editor instance. If it's necessary to make changes on the setting (for plugins for example), the "configLoaded" event can be used.
  • Point the editor to an internal configuration file with the CustomCofig setting. This file would them point to the "external" configuration file, which can be edited by your customers, by using the CustomConfig setting again.
  • Edit the ckeditor.pack file, adding a custom javascript file to the end of the list, which contains your custom changes to CKEDITOR.config. Then, run CKPackager on the installation folder to generate the compressed files again.
Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy