#2016: Error Opening Links Dialog with IE7
---------------------------+------------------------------------------------
 Reporter:  MarkWB         |        Type:  Bug         
   Status:  new            |    Priority:  Normal      
Milestone:  FCKeditor 2.6  |   Component:  UI : Dialogs
  Version:  SVN            |    Keywords:              
---------------------------+------------------------------------------------
 Error Message:
 Line: 103
 Error: Can't move focus to the control because it is invisible, not
 enabled, or of a type that does not accept the focus.

 Cause: Invoking the links dialog for properties of either an existing
 anchor or 'mailto:' when using IE7.

 This dialog can open three different ways based on link type for which
 it'll be a properties dialog; namely 'url', 'anchor', or 'email'. The
 error is true for both 'anchor' and 'email' since the element on which
 focus gets placed is specific for 'url', and so is invisible for the other
 two cases. Replacing line 162 of 'dialog/fck_link/fck_link.js' that reads
 like:
 {{{
         SelectField( 'txtUrl' ) ;
 }}}
 with valid (and sensible) places to put focus based on the three
 conditions:
 {{{
         switch( document.getElementById( 'cmbLinkType' ).value )
         {
                 case 'url'      : SelectField( 'txtURL' ) ; break ;
                 case 'email'    : SelectField( 'txtEMailSubject' ) ; break
 ;
                 case 'anchor'   : document.getElementById( 'cmbAnchorName'
 ).focus() ;
         }
 }}}
 fixes it for me. (SelectField isn't totally valid for anchor)

 FF seems not to care, but IE does. (SVN build 18395)

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2016>
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