This commit is contained in:
Huong Nguyen 2024-09-09 14:31:57 +07:00
commit 2b64ce97ab
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A
4 changed files with 14 additions and 2 deletions

View File

@ -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

View File

@ -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;
}
}
},

View File

@ -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;
}
}
},