Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 committed Mar 7, 2024
1 parent 5967c1d commit 279ed75
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bundle/Resources/public/js/CKEditor/anchor/anchor-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class IbexaAnchorUI extends Plugin {
}

removeAnchorFromSiblings(modelElement, writer) {
let previousSibling = modelElement.previousSibling;
let nextSibling = modelElement.nextSibling;
let { previousSibling } = modelElement;
let { nextSibling } = modelElement;

while (previousSibling?.name === 'listItem') {
writer.removeAttribute('anchor', previousSibling);
Expand Down Expand Up @@ -74,7 +74,6 @@ class IbexaAnchorUI extends Plugin {
this.listenTo(formView, 'remove-anchor', () => {
const modelElement = this.getModelElement();
const isListItem = modelElement.name === 'listItem';
console.log(modelElement);

this.editor.model.change((writer) => {
writer.removeAttribute('anchor', modelElement);
Expand Down

0 comments on commit 279ed75

Please sign in to comment.