Open paoonline opened 4 years ago
My Code
<Editor editorState={editorState} wrapperClassName="demo-wrapper" editorClassName="demo-editor" editorStyle={EditorStyle} onEditorStateChange={editor && this.onEditorStateChange} toolbarStyle={ToolbarStyle} toolbar={{ options: ['inline', 'image', 'list', 'textAlign', 'history'], inline: { options: ['bold', 'italic', 'underline', 'strikethrough', 'monospace'], }, image: { previewImage: true, uploadCallback: uploadImageCallBack, alt: { present: true, mandatory: true } }, }} /> :
I had the same issue, an easy fix is change its style
.rdw-image-modal-upload-option-label>img { width: 100px; height: 100px; object-fit: contain; }
My Code