loleaflet/src/control/Control.ContextMenu.js | 2 +- loleaflet/src/unocommands.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)
New commits: commit acccf779ce3f5f568fb50593985e0c76b40b866a Author: Dennis Francis <dennis.fran...@collabora.com> AuthorDate: Thu Jan 23 11:49:35 2020 +0530 Commit: Dennis Francis <dennis.fran...@collabora.com> CommitDate: Fri Jan 24 07:20:31 2020 +0100 Show missing anchor submenu items in the context menu This is about the context menu related to shapes. The core is already sending data about all anchor menu items but they were not whitelisted. After whitelisting them, they work well except that the 'anchor' overlay image is not shown over the cell the shape is anchored to. Change-Id: I9c2c84e58047d92132329d09a4a2569272d804ff Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87232 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Michael Meeks <michael.me...@collabora.com> diff --git a/loleaflet/src/control/Control.ContextMenu.js b/loleaflet/src/control/Control.ContextMenu.js index c00434629..83a57730c 100644 --- a/loleaflet/src/control/Control.ContextMenu.js +++ b/loleaflet/src/control/Control.ContextMenu.js @@ -50,7 +50,7 @@ L.Control.ContextMenu = L.Control.extend({ 'SpellCheckIgnore', 'SpellCheckIgnoreAll', 'SpellCheckApplySuggestion'], spreadsheet: ['MergeCells', 'SplitCell', 'RecalcPivotTable', 'FormatCellDialog', - 'ShowNote', 'DeleteNote'], + 'ShowNote', 'DeleteNote', 'SetAnchorToCell', 'SetAnchorToCellResize'], presentation: [], drawing: [] diff --git a/loleaflet/src/unocommands.js b/loleaflet/src/unocommands.js index 37ca25205..08335e9f1 100644 --- a/loleaflet/src/unocommands.js +++ b/loleaflet/src/unocommands.js @@ -264,6 +264,8 @@ var unoCommandsArray = { SelectTable:{presentation:{menu:_('~Select...'),},text:{menu:_('~Table'),},}, SendToBack:{global:{menu:_('~Send to Back'),},}, SetAnchorAtChar:{text:{menu:_('To ~Character'),},}, + SetAnchorToCell:{spreadsheet:{menu:_('To ~Cell'),},}, + SetAnchorToCellResize:{spreadsheet:{menu:_('To Cell (~resize with cell)'),},}, SetAnchorToChar:{text:{menu:_('As C~haracter'),},}, SetAnchorToFrame:{text:{menu:_('To ~Frame'),},}, SetAnchorToPage:{spreadsheet:{menu:_('To P~age'),},text:{menu:_('To P~age'),},}, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits