scripts/core/editor3/components/HighlightsPopupPositioner.tsx
Function getNextPosition
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getNextPosition(originalElement, editorNode) {
const element = originalElement.cloneNode(true) as HTMLElement;
const mainFlexElement = element.firstElementChild as HTMLElement;
originalElement.insertAdjacentElement('beforebegin', element);