mirror of
https://github.com/moodle/moodle.git
synced 2025-02-24 12:03:12 +01:00
MDL-82860 atto_link: Set value as default to avoid unexpected behaviour
This commit is contained in:
parent
1938c438ea
commit
6816a5a770
@ -220,6 +220,10 @@ Y.namespace('M.atto_link').Button = Y.Base.create('button', Y.M.editor_atto.Edit
|
||||
this._hasTextToDisplay = true;
|
||||
this._hasPlainTextSelected = true;
|
||||
this._content.one(SELECTORS.URLTEXT).set('value', textToDisplay);
|
||||
} else {
|
||||
// Set as default.
|
||||
this._hasTextToDisplay = false;
|
||||
this._hasPlainTextSelected = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
File diff suppressed because one or more lines are too long
@ -220,6 +220,10 @@ Y.namespace('M.atto_link').Button = Y.Base.create('button', Y.M.editor_atto.Edit
|
||||
this._hasTextToDisplay = true;
|
||||
this._hasPlainTextSelected = true;
|
||||
this._content.one(SELECTORS.URLTEXT).set('value', textToDisplay);
|
||||
} else {
|
||||
// Set as default.
|
||||
this._hasTextToDisplay = false;
|
||||
this._hasPlainTextSelected = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -218,6 +218,10 @@ Y.namespace('M.atto_link').Button = Y.Base.create('button', Y.M.editor_atto.Edit
|
||||
this._hasTextToDisplay = true;
|
||||
this._hasPlainTextSelected = true;
|
||||
this._content.one(SELECTORS.URLTEXT).set('value', textToDisplay);
|
||||
} else {
|
||||
// Set as default.
|
||||
this._hasTextToDisplay = false;
|
||||
this._hasPlainTextSelected = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user