File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/bundle/Resources/public/js/CKEditor/anchor Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,10 @@ class IbexaAnchorUI extends Plugin {
7171 const parentElement = this . getModelElement ( ) ;
7272 const values = { } ;
7373
74+ if ( this . balloon . hasView ( this . formView ) ) {
75+ return ;
76+ }
77+
7478 if ( parentElement ) {
7579 values . anchor = parentElement . getAttribute ( 'anchor' ) || '' ;
7680 }
@@ -116,7 +120,7 @@ class IbexaAnchorUI extends Plugin {
116120 Array . from ( richtexts ) . every ( ( richtext ) => {
117121 countElementsWithSameId += richtext . querySelectorAll ( `[id="${ value } "]` ) . length ;
118122
119- return countElementsWithSameId > 1 ;
123+ return countElementsWithSameId < 1 ;
120124 } ) ;
121125
122126 return ( isSameAsBefore && countElementsWithSameId === 1 ) || ( ! isSameAsBefore && countElementsWithSameId === 0 ) ;
You can’t perform that action at this time.
0 commit comments