We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a4a170 commit 45d654fCopy full SHA for 45d654f
1 file changed
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