#3448: Images aren't selectable in Safari
-----------------------+----------------------------------------------------
Reporter: alfonsoml | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone:
Component: General | Version: SVN (CKEditor)
Keywords: |
-----------------------+----------------------------------------------------
There's some specific code in V2 to handle this in fck_gecko.js (can't
find right now the original ticket)
{{{
this.EditorDocument.addEventListener( 'mousedown',
function( ev )
{
var element = ev.srcElement ;
if ( element.nodeName.IEquals( 'IMG',
'HR', 'INPUT', 'TEXTAREA', 'SELECT' ) )
{
FCKSelection.SelectNode( element )
;
}
}, true ) ;
this.EditorDocument.addEventListener( 'mouseup',
function( ev )
{
if ( ev.srcElement.nodeName.IEquals(
'INPUT', 'TEXTAREA', 'SELECT' ) )
ev.preventDefault()
}, true ) ;
this.EditorDocument.addEventListener( 'click',
function( ev )
{
if ( ev.srcElement.nodeName.IEquals(
'INPUT', 'TEXTAREA', 'SELECT' ) )
ev.preventDefault()
}, true ) ;
}}}
Also the last functions take care of disabling the default behavior of
those elements.
--
Ticket URL: <http://dev.fckeditor.net/ticket/3448>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac