#439: IE: CTRL+Click to open links in a new window
--------------------------+-------------------------------------------------
  Reporter:  Duncan       |       Owner:                 
      Type:  New Feature  |      Status:  new            
  Priority:  Normal       |   Milestone:  FCKeditor 2.6.1
 Component:  General      |     Version:                 
Resolution:               |    Keywords:  Confirmed IE   
--------------------------+-------------------------------------------------
Changes (by fredck):

  * milestone:  => FCKeditor 2.6.1

Comment:

 I confirm that current we have this feature natively on Firefox. No luck
 for us with IE, Safari and Opera.

 I've just investigated this feature a bit and find out several issues.

 I'm supposing the only way to do that is:

  1. Take the link href.
  2. Call window.open to open it.

 Sounds simple, but then the troubles.

  * Popup blockers just hate window.open.

  * Everything is ok with full URLs.

  * Absolute URLs (like "/path/page.html") will be always relative to the
 site running the editor. No lucky to open www pages from a backoffice in a
 different URL.

  * Relative URLs (like "path.page.html" or "../path/page.html") are a big
 trouble. They will be always relative to the "fckeditor/editor" folder.
 I've tried opening it from several different windows, but it will always
 be relative to "fckeditor/editor".

 So, things are not that simple. The correct approach would be:

  * If BaseHref is set, combine absolute and relative URLs with it. The
 base href value should be taken from the page because of FullPage=true.
  * If BaseHref is empty, combine absolute and relative URLs with the main
 page URL (the page containing the editor).

 Other then that, I've also tested the CTRL+Click and SHIFT+Click. In IE,
 clicks with control (at least on editing mode) are not passed to the
 "click" or "mousedown" events. So there is no way to catch them. I was
 able to make it work with SHIFT with "good enough" results. But, it seems
 that CTRL is more accepted for that (Word uses it for instance). So, much
 probably the context menu option is the right approach for it.

 To conclude, this is doable with some effort, but the popup blockers issue
 will always be a problem for us.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/439#comment:7>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to