mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-46497 atto: Whitespace/coding style fix
This commit is contained in:
parent
56b62992fa
commit
99690e0fa8
@ -67,7 +67,10 @@ Y.namespace('M.atto_rtl').Button = Y.Base.create('button', Y.M.editor_atto.Edito
|
||||
var host = this.get('host'),
|
||||
sourceSelection = rangy.saveSelection(),
|
||||
selection = host.getSelection(),
|
||||
newDirection = { rtl: 'ltr', ltr: 'rtl' };
|
||||
newDirection = {
|
||||
rtl: 'ltr',
|
||||
ltr: 'rtl'
|
||||
};
|
||||
if (selection) {
|
||||
// Format the selection to be sure it has a tag parent (not the contenteditable).
|
||||
var parentNode = host.formatSelectionBlock(),
|
||||
|
@ -67,7 +67,10 @@ Y.namespace('M.atto_rtl').Button = Y.Base.create('button', Y.M.editor_atto.Edito
|
||||
var host = this.get('host'),
|
||||
sourceSelection = rangy.saveSelection(),
|
||||
selection = host.getSelection(),
|
||||
newDirection = { rtl: 'ltr', ltr: 'rtl' };
|
||||
newDirection = {
|
||||
rtl: 'ltr',
|
||||
ltr: 'rtl'
|
||||
};
|
||||
if (selection) {
|
||||
// Format the selection to be sure it has a tag parent (not the contenteditable).
|
||||
var parentNode = host.formatSelectionBlock(),
|
||||
|
@ -65,7 +65,10 @@ Y.namespace('M.atto_rtl').Button = Y.Base.create('button', Y.M.editor_atto.Edito
|
||||
var host = this.get('host'),
|
||||
sourceSelection = rangy.saveSelection(),
|
||||
selection = host.getSelection(),
|
||||
newDirection = { rtl: 'ltr', ltr: 'rtl' };
|
||||
newDirection = {
|
||||
rtl: 'ltr',
|
||||
ltr: 'rtl'
|
||||
};
|
||||
if (selection) {
|
||||
// Format the selection to be sure it has a tag parent (not the contenteditable).
|
||||
var parentNode = host.formatSelectionBlock(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user