Changeset 7293


Ignore:
Timestamp:
10/05/11 22:07:53 (3 years ago)
Author:
alfonsoml
Message:

#8432 add protection if there's no selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/_source/plugins/image/dialogs/image.js

    r7176 r7293  
    291291 
    292292                                var editor = this.getParentEditor(), 
    293                                         sel = this.getParentEditor().getSelection(), 
    294                                         element = sel.getSelectedElement(), 
     293                                        sel = editor.getSelection(), 
     294                                        element = sel && sel.getSelectedElement(), 
    295295                                        link = element && element.getAscendant( 'a' ); 
    296296 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy