-
-
Notifications
You must be signed in to change notification settings - Fork 337
Description
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;",
};