From b96503d47aac798ac9a3b688966ff9d6b9b8ee3b Mon Sep 17 00:00:00 2001 From: Serhey Dolgushev Date: Tue, 19 May 2020 14:51:21 +0100 Subject: [PATCH] EZP-31641: Unable to manage links in table cells --- .../js/alloyeditor/src/buttons/ez-btn-linkedit.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bundle/Resources/public/js/alloyeditor/src/buttons/ez-btn-linkedit.js b/src/bundle/Resources/public/js/alloyeditor/src/buttons/ez-btn-linkedit.js index 56c1c5a40b..98c856f46c 100644 --- a/src/bundle/Resources/public/js/alloyeditor/src/buttons/ez-btn-linkedit.js +++ b/src/bundle/Resources/public/js/alloyeditor/src/buttons/ez-btn-linkedit.js @@ -480,6 +480,16 @@ export default class EzBtnLinkEdit extends Component { this.invokeWithFixedScrollbar(() => { editor.fire('actionPerformed', this); + + const pathElement = editor.elementPath().lastElement; + + if (pathElement.getName() === 'br') { + const parent = pathElement.getParent(); + + if (parent.getName() === 'td' || parent.getName() === 'th') { + editor.eZ.moveCaretToElement(editor, parent); + } + } }); }