Skip to content

Commit

Permalink
Introduced dom.elementspath#direction.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Dec 7, 2012
1 parent 5b02ebf commit 67b6c16
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/dom/elementpath.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,15 @@ CKEDITOR.dom.elementPath.prototype = {

return true;

},

/**
* Retrieve the text direction for this elements path.
*
* @returns {'ltr'/'rtl'}
*/
direction: function() {
var directionNode = this.block || this.blockLimit || this.root;
return directionNode.getDirection( 1 );
}
};

0 comments on commit 67b6c16

Please sign in to comment.