*/
_toggleRTL: function(e, direction) {
var host = this.get('host'),
- sourceSelection = rangy.saveSelection(),
+ sourceSelection = window.rangy.saveSelection(),
selection = host.getSelection(),
newDirection = {
rtl: 'ltr',
}
// Change selection from the containing paragraph to the original one.
- rangy.restoreSelection(sourceSelection);
+ window.rangy.restoreSelection(sourceSelection);
// Mark the text as having been updated.
this.markUpdated();
}