Ticket #7206 (new New Feature)

Opened 3 years ago

Last modified 3 years ago

Provide support to load CKEditor in one frame and render it in another

Reported by: tmonahan Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: IBM Cc: jamcunni@…, satya_minnekanti@…

Description

We would like to request support to load CKEditor in one frame and render it in another. This would be a very beneficial feature for optimising performance. It is currently not supported. Some issues that they have reported so far regarding this are:

  • CKEDITOR.tools.isArray() does not support multiple frames
  • core/loader.js calls current document object


A sample test case is attached which demonstrates the desired functionality.

Instructions for running the test case:

  1. Copy the attached files to <CKEditor>\_samples directory.
  1. Open multiframe.html on Mozilla/Firefox.
  1. Press "Create Widgets" button.
  1. Verify CKEditor is created.
  1. Modify Widget_CKEditor.prototype.createEditorElem in multiframe.js like this:

// NG
loader.oDocument = globals.scriptFrame.document;

// OK
//loader.oDocument = globals.uiFrame.document;
  1. Open multiframe.html on Mozilla/Firefox.
  1. Press "Create Widgets" button.

Problem: CKEditor instance is not created in UI Frame.

Attachments

Multi Frame Sample.zip (2.2 KB) - added by tmonahan 3 years ago.

Change History

Changed 3 years ago by tmonahan

comment:1 Changed 3 years ago by tmonahan

  • Keywords IBM added
  • Cc monahant@… added

comment:2 Changed 3 years ago by tmonahan

  • Cc monahant@… removed

comment:3 Changed 3 years ago by jamescun

  • Cc jamcunni@… added

comment:4 Changed 3 years ago by satya

  • Cc satya_minnekanti@… added

comment:5 Changed 3 years ago by fredck

I've just created the following branch, so further research can be made on this:
http://svn.ckeditor.com/CKEditor/branches/developers/ibm/7206

comment:6 Changed 3 years ago by fredck

With [6675], I've updated the tc so it uses the scriptFrame for the scripts. I've also made the necessary changes to make it work... well, at least the editor loads now, but still strongly broken, which indicates the strong research needed to eventually have this feature available any time.

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy