Skip to content

Commit

Permalink
Merge branch 't/11490'
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewand committed Jan 31, 2014
2 parents c017cf5 + 235eaf4 commit c96cd55
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ CKEditor 4 Changelog

Fixed Issues:

* [#11417](http://dev.ckeditor.com/ticket/11417): The [`widget.doubleclick`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget-event-doubleclick) event is not cancelled anymore after editing has been triggered.
* [#11490](http://dev.ckeditor.com/ticket/11490): Fixed issue with menubuttons panel showing in source mode.
* [#11417](http://dev.ckeditor.com/ticket/11417): The [`widget.doubleclick`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget-event-doubleclick) event is not cancelled anymore after editing has been triggered.

## CKEditor 4.3.2

Expand Down
9 changes: 8 additions & 1 deletion core/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,14 @@
* @returns {CKEDITOR.dom.elementPath}
*/
elementPath: function( startNode ) {
startNode = startNode || this.getSelection().getStartElement();
if ( !startNode ) {
var sel = this.getSelection();
if ( !sel )
return null;

startNode = sel.getStartElement();
}

return startNode ? new CKEDITOR.dom.elementPath( startNode, this.editable() ) : null;
},

Expand Down

0 comments on commit c96cd55

Please sign in to comment.