fix: undefined set selection for image modal (#384)

This commit is contained in:
Kristin Aoki
2023-09-06 16:48:21 -04:00
committed by GitHub
parent 8fe8bc1587
commit 9ebe187029
2 changed files with 3 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ exports[`TinyMceWidget snapshots ImageUploadModal is not rendered 1`] = `
"placeholder": undefined,
"selection": "hooks.selectedImage.selection",
"setEditorRef": undefined,
"setSelection": undefined,
"setSelection": [MockFunction hooks.selectedImage.setSelection],
"studioEndpointUrl": "sOmEoThERvaLue.cOm",
"updateContent": [Function],
}
@@ -129,7 +129,7 @@ exports[`TinyMceWidget snapshots SourcecodeModal is not rendered 1`] = `
"placeholder": undefined,
"selection": "hooks.selectedImage.selection",
"setEditorRef": undefined,
"setSelection": undefined,
"setSelection": [MockFunction hooks.selectedImage.setSelection],
"studioEndpointUrl": "sOmEoThERvaLue.cOm",
"updateContent": [Function],
}
@@ -217,7 +217,7 @@ exports[`TinyMceWidget snapshots renders as expected with default behavior 1`] =
"placeholder": undefined,
"selection": "hooks.selectedImage.selection",
"setEditorRef": undefined,
"setSelection": undefined,
"setSelection": [MockFunction hooks.selectedImage.setSelection],
"studioEndpointUrl": "sOmEoThERvaLue.cOm",
"updateContent": [Function],
}

View File

@@ -31,7 +31,6 @@ const editorConfigDefaultProps = {
setEditorRef: undefined,
placeholder: undefined,
initializeEditor: undefined,
setSelection: undefined,
updateContent: undefined,
content: undefined,
minHeight: undefined,
@@ -41,7 +40,6 @@ const editorConfigPropTypes = {
setEditorRef: PropTypes.func,
placeholder: PropTypes.any,
initializeEditor: PropTypes.func,
setSelection: PropTypes.func,
updateContent: PropTypes.func,
content: PropTypes.any,
minHeight: PropTypes.any,