We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c62164b commit 7d00d30Copy full SHA for 7d00d30
src/bundle/Resources/public/js/CKEditor/remove-element/remove-element-command.js
@@ -4,7 +4,9 @@ class IbexaRemoveElementCommand extends Command {
4
execute() {
5
this.editor.model.change((writer) => {
6
const selectedElement = this.editor.model.document.selection.getSelectedElement();
7
+ const positionBefore = writer.createPositionBefore(selectedElement);
8
9
+ writer.setSelection(positionBefore);
10
writer.remove(selectedElement);
11
});
12
}
0 commit comments