fix: undefined set selection for image modal (#384)
This commit is contained in:
@@ -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],
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user