Skip to content

Commit

Permalink
EZP-31641: Unable to manage links in table cells
Browse files Browse the repository at this point in the history
  • Loading branch information
SerheyDolgushev committed May 19, 2020
1 parent 4b368c6 commit f0978ad
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,14 @@ 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);
}
}
});
}

Expand Down

0 comments on commit f0978ad

Please sign in to comment.