MDL-71671 editor_atto: Insert html of button menus after the button

This commit is contained in:
Shamim Rezaie 2021-07-05 14:58:17 +10:00
parent b2698f641a
commit 1e47c534a7
7 changed files with 27 additions and 6 deletions

View File

@ -558,6 +558,8 @@ EditorPluginButtons.prototype = {
// Append it to the group.
group.append(button);
group.append(Y.Node.create('<div class="menuplaceholder" id="' + id + '_menu"></div>'));
config.attachmentPoint = '#' + id + '_menu';
currentFocus = this.toolbar.getAttribute('aria-activedescendant');
if (!currentFocus) {

File diff suppressed because one or more lines are too long

View File

@ -556,6 +556,8 @@ EditorPluginButtons.prototype = {
// Append it to the group.
group.append(button);
group.append(Y.Node.create('<div class="menuplaceholder" id="' + id + '_menu"></div>'));
config.attachmentPoint = '#' + id + '_menu';
currentFocus = this.toolbar.getAttribute('aria-activedescendant');
if (!currentFocus) {

View File

@ -408,6 +408,8 @@ EditorPluginButtons.prototype = {
// Append it to the group.
group.append(button);
group.append(Y.Node.create('<div class="menuplaceholder" id="' + id + '_menu"></div>'));
config.attachmentPoint = '#' + id + '_menu';
currentFocus = this.toolbar.getAttribute('aria-activedescendant');
if (!currentFocus) {

View File

@ -39,8 +39,15 @@ div.editor_atto_toolbar button {
cursor: pointer;
}
div.editor_atto_toolbar button + button {
border-left: 1px solid #ccc;
div.editor_atto_toolbar .menuplaceholder {
display: inline-block;
}
div.editor_atto_toolbar {
button + button,
.menuplaceholder + button {
border-left: 1px solid #ccc;
}
}
div.editor_atto_toolbar button[disabled] {

View File

@ -19649,7 +19649,11 @@ div.editor_atto_toolbar button {
border-radius: 0;
cursor: pointer; }
div.editor_atto_toolbar button + button {
div.editor_atto_toolbar .menuplaceholder {
display: inline-block; }
div.editor_atto_toolbar button + button,
div.editor_atto_toolbar .menuplaceholder + button {
border-left: 1px solid #ccc; }
div.editor_atto_toolbar button[disabled] {

View File

@ -19839,7 +19839,11 @@ div.editor_atto_toolbar button {
border-radius: 0;
cursor: pointer; }
div.editor_atto_toolbar button + button {
div.editor_atto_toolbar .menuplaceholder {
display: inline-block; }
div.editor_atto_toolbar button + button,
div.editor_atto_toolbar .menuplaceholder + button {
border-left: 1px solid #ccc; }
div.editor_atto_toolbar button[disabled] {