mirror of
https://github.com/moodle/moodle.git
synced 2025-03-21 08:00:37 +01:00
MDL-71671 editor_atto: Insert html of button menus after the button
This commit is contained in:
parent
b2698f641a
commit
1e47c534a7
@ -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
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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] {
|
||||
|
@ -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] {
|
||||
|
@ -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] {
|
||||
|
Loading…
x
Reference in New Issue
Block a user