Last modified: 2014-04-07 14:07:27 UTC
Found while testing out stuff w/ bug 29328... This iframe-specific code gets called from the WikiEditor toolbar module: if ( context.$iframe !== undefined ) { context.$iframe[0].contentWindow.focus(); } The actual text insertion is abstracted via jquery.textSelection (but not perfectly -- see bug 29328!) but the focus isn't. Probably needs to be made into a function on the WikiEditor context object, so the iframe extension can override it. There are probably others... * dialogs: explicit code to trigger iframe initialization... seems like this should be pushed back a level so we just tell WikiEditor to load & init the extension if not already loaded? * dialogs.config: another focus() hack, and a special keypress binding with the search/replace dialog, which probably just needs to be able to grab an appropriate element to bind on which could then be done generically * templateEditor pokes some data stuff on the $iframe, but that may be ok as it's totally dependent on the iframe thing anyway.
The unmaintained beta iframe mode was removed from WikiEditor recently in WikiEditor: https://gerrit.wikimedia.org/r/#/c/123649/ Hence closing as WONTFIX.