Skip to content

스크립트 에러에 대해 문의 드립니다. #1586

@kimjeonghyun2

Description

@kimjeonghyun2

To make it easier for us to help you, please include as much useful information as possible.

Version

SunEditor: 2.47.7
Mode: balloon
Wrapper: suneditor-react

Additional context

아래 3개의 스크립트 에러가 자주 발생하는데 원인 파악이 가능할까요 ?
Uncaught TypeError: Cannot read properties of null (reading 'replaceChild')
Uncaught TypeError: this._iframeAutoHeight is not a function
Uncaught TypeError: f._editorRange is not a function

추가적으로 코드 첨부합니다.
<SunEditor
key={selectedData?.sqno}
defaultValue={selectedData?.contents}
getSunEditorInstance={(sunEditor) => (sunEditorRef.current = sunEditor)}
setOptions={editorOptions}
onChange={(value) => handleChange(value)}
onCopy={(event, clipboardData, core) => handleCopy(event, sunEditorRef, clipboardData)}
onPaste={(event, cleanData, maxCharCount, core) => handlePaste(event, sunEditorRef)}
/>

const editorOptions = {
iframe: false,
iframeAutoHeight: false,
mode: "balloon",
buttonList: [["bold", /*"italic", */ "underline", "fontColor"]],
resizeEnable: false,
width: "100%",
resizingBar: false,
font: "12px",
historyStackDelayTime: 0,
defaultStyle: "white-space: pre-wrap; word-wrap: break-word;",
};

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