Changeset 1733


Ignore:
Timestamp:
16.11.2011 20:50:54 (6 months ago)
Author:
zmsdev
Message:

Fixed CKEDITOR linkbutton-dialog in IE (requested by uni-bern) (23)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/plugins/www/ckeditor/plugins/linkbutton/dialogs/link.js

    r1729 r1733  
    11var zmiDialog = null; 
     2var zmiSelectedText = null; 
    23 
    34function showPreviewZMSGraphic(el,src,icon,filename,size) { 
     
    156157                 ], 
    157158 
     159                        onShow: function() { 
     160                                        var selection = editor.getSelection(); 
     161                                        if (CKEDITOR.env.ie) { 
     162                                                zmiSelectedText = selection.document.$.selection.createRange().text; 
     163                                        } else { 
     164                                                zmiSelectedText = selection.getNative(); 
     165                                        } 
     166                        }, 
     167 
    158168                        onLoad: function() { 
    159169                                        zmiDialog = this; 
     
    173183 
    174184                        onOk: function() { 
    175                                         var selectedText = editor.getSelection().getNative(); 
     185                                        var selectedText = zmiSelectedText; 
    176186                                        var url = this.getContentElement('tab1', 'inp_url').getValue(); 
    177187                                        var text = url; 
Note: See TracChangeset for help on using the changeset viewer.