#3026: Provide a method for making iframe based dialogs --------------------------+------------------------------------------------- Reporter: martinkou | Owner: martinkou Type: Bug | Status: new Priority: High | Milestone: CKEditor 3.0 Component: UI : Dialogs | Version: SVN Keywords: Oracle | --------------------------+------------------------------------------------- There exists a large amount of legacy dialogs written for FCKeditor 2.x in the wild that are based on raw HTML sources. CKEditor v3's dialog system is based on dialog definition objects defined in JavaScript files instead of HTML source files. So it's is now impossible to reuse those HTML source files directly for CKEditor v3.
However, it is possible to bridge the two together by displaying the HTML file via an iframe inside a CKEditor v3 dialog. The HTML file would still need to be changed to account for differences in layout and dialog logic, but the changes required would be minimized. Currently, this has to be done by declaring an html type object in the dialog definition and writing out the iframe's HTML code into the dialog definition. This works, but it is very inconvenient. Proposed changes to the dialog system to make this easier: {{{ // A new type of UI element definition for iframe { type : 'iframe', src : 'http://somewhere.com/someplace.html', onContentLoad : functionRef } }}} The contents in the iframe should be reloaded for every time the dialog is opened. And the onContentLoad function should be executed after the contents of the iframe is loaded. After implementing the iframe UI element, one more shortcut will still be needed to directly add dialogs consisting of solely an iframe - because that's the common case for using that element. {{{ CKEDITOR.dialog.addIframe( 'dialogName', iframeSrc, iframeOnContentLoadFunction ); }}} -- Ticket URL: <http://dev.fckeditor.net/ticket/3026> FCKeditor <http://www.fckeditor.net/> The text editor for Internet ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ FCKeditor-Trac mailing list FCKeditor-Trac@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fckeditor-trac