mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-44770 editor-atto: table context menu opens from button
Context menu now opens from button, rather than table cell. Modified wording of table strings.
This commit is contained in:
parent
ad32dda90c
commit
f8c3af1321
5 changed files with 6 additions and 6 deletions
|
@ -33,8 +33,8 @@ $string['columns'] = 'Columns';
|
|||
$string['rows'] = 'Rows';
|
||||
$string['both'] = 'Both';
|
||||
$string['edittable'] = 'Edit table';
|
||||
$string['addrowafter'] = 'Add row after';
|
||||
$string['addcolumnafter'] = 'Add column after';
|
||||
$string['addrowafter'] = 'Insert row after current cell';
|
||||
$string['addcolumnafter'] = 'Insert column after current cell';
|
||||
$string['moverowup'] = 'Move row up';
|
||||
$string['moverowdown'] = 'Move row down';
|
||||
$string['movecolumnleft'] = 'Move column left';
|
||||
|
|
|
@ -297,7 +297,7 @@ Y.namespace('M.atto_table').Button = Y.Base.create('button', Y.M.editor_atto.Edi
|
|||
|
||||
// Show the context menu, and align to the current position.
|
||||
this._contextMenu.show();
|
||||
this._contextMenu.align(e.tableCell, [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.BL]);
|
||||
this._contextMenu.align(this.buttons.table, [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.BL]);
|
||||
|
||||
// If there are any anchors in the bounding box, focus on the first.
|
||||
if (boundingBox.one('a')) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -297,7 +297,7 @@ Y.namespace('M.atto_table').Button = Y.Base.create('button', Y.M.editor_atto.Edi
|
|||
|
||||
// Show the context menu, and align to the current position.
|
||||
this._contextMenu.show();
|
||||
this._contextMenu.align(e.tableCell, [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.BL]);
|
||||
this._contextMenu.align(this.buttons.table, [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.BL]);
|
||||
|
||||
// If there are any anchors in the bounding box, focus on the first.
|
||||
if (boundingBox.one('a')) {
|
||||
|
|
|
@ -295,7 +295,7 @@ Y.namespace('M.atto_table').Button = Y.Base.create('button', Y.M.editor_atto.Edi
|
|||
|
||||
// Show the context menu, and align to the current position.
|
||||
this._contextMenu.show();
|
||||
this._contextMenu.align(e.tableCell, [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.BL]);
|
||||
this._contextMenu.align(this.buttons.table, [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.BL]);
|
||||
|
||||
// If there are any anchors in the bounding box, focus on the first.
|
||||
if (boundingBox.one('a')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue