tiptap: fix image size

This commit is contained in:
fantasticit 2022-08-15 12:40:23 +08:00
parent d98fb8d4c5
commit 5b8dac7f72
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ export const ImageWrapper = ({ editor, node, updateAttributes }) => {
</Spin>
</div>
) : (
<LazyLoadImage src={src} alt={alt} width={width} height={height} />
<LazyLoadImage src={src} alt={alt} width={'100%'} height={'100%'} />
)}
</Resizeable>
</NodeViewWrapper>