Opened 7 years ago

Last modified 7 years ago

#7206 new New Feature

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

Reported by: Teresa Monahan 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 (1)

Multi Frame Sample.zip (2.2 KB) - added by Teresa Monahan 7 years ago.

Download all attachments as: .zip

Change History (7)

Changed 7 years ago by Teresa Monahan

Attachment: Multi Frame Sample.zip added

comment:1 Changed 7 years ago by Teresa Monahan

Cc: monahant@… added
Keywords: IBM added

comment:2 Changed 7 years ago by Teresa Monahan

Cc: monahant@… removed

comment:3 Changed 7 years ago by James Cunningham

Cc: jamcunni@… added

comment:4 Changed 7 years ago by Satya Minnekanti

Cc: satya_minnekanti@… added

comment:5 Changed 7 years ago by Frederico Caldeira Knabben

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 7 years ago by Frederico Caldeira Knabben

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 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy