Skip to content

[Balloon Mode] Balloon position misplaced after long text selection + runtime errors on setContents (replaceChild / _iframeAutoHeight) #1585

@kimjeonghyun2

Description

@kimjeonghyun2

Version

SunEditor: 2.47.7
Mode: balloon
Wrapper: suneditor-react

When the editor content is long and scrollable, if the user drag-selects text from the visible area toward the bottom (so that the page scrolls during the drag), the balloon UI (or editor’s floating UI) appears anchored near the very bottom (off-screen / non-visible area) rather than near the actual selection/caret. It looks like the selection-change or scroll event updates the balloon’s position using stale layout/scroll coordinates.

And there's one more question

I am experiencing two recurring runtime errors when using SunEditor in balloon mode, especially when calling setContents() (for example, when switching between memos or updating content after API calls).

Errors
Uncaught TypeError: Cannot read properties of null (reading 'replaceChild')
Uncaught TypeError: this._iframeAutoHeight is not a function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions