Ticket #6080: 6080.patch

File 6080.patch, 1.0 KB (added by Sa'ar Zac Elias, 14 years ago)
  • specialchar/dialogs/specialchar.js

     
    2929                        range.insertNode( textNode );
    3030                }
    3131
    32                 range.moveToPosition( textNode, CKEDITOR.POSITION_AFTER_END );
    33                 range.select();
     32                if ( range )
     33                {
     34                        range.moveToPosition( textNode, CKEDITOR.POSITION_AFTER_END );
     35                        range.select();
     36                }
    3437
    3538                editor.fire( 'saveSnapshot' );
    3639        };
  • wysiwygarea/plugin.js

     
    2020
    2121        function checkReadOnly( selection )
    2222        {
    23                 return selection.getCommonAncestor().isReadOnly();
     23                if ( selection.getType() == CKEDITOR.SELECTION_ELEMENT )
     24                        return selection.getSelectedElement().isReadOnly();
     25                else
     26                        return selection.getCommonAncestor().isReadOnly();
    2427        }
    2528
    2629        function onInsertHtml( evt )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy