-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug issue with resizing image with option "inline: true" #211
Comments
@semanticist21 I want to reproduce the bug you found but the codesandbox link is "Devbox not found". Also, I'm not familiar with the expected behaviour here, but based on the title and the expected behaviour you described:
Do you expect the resize by dragging to work or not to work, when inline: true option is present? |
Sorry. It is other link. you can reproduce the issue by giving option { inline: true } to ResizableImage extension. And actually, I found what the problem is. ResizableImageResizer in ResizableImageComponent.tsx is hidden even with normal dragging behaviour, I had to create my own custom selected boolean to work properly. |
Glad you found the bug, I'd would take me much longer considering I haven't had a chance to dive in all the details. |
It is a temporay solution but If that is ok, |
Firstly, great thanks for contributors.
I'm using the editor with example here codesandbox.
"https://codesandbox.io/p/devbox/mui-tiptap-demo-forked-g6njhk?file=%2Fsrc%2FEditorMenuControls.tsx&workspaceId=383814f0-5631-4226-8011-65cb927d4daf"
Describe the bug
I had to edit ResizableImage extension options in "useExtensions.ts" to enable image paste when writing.
I don't know why but when directly copying content from page, image was not copy-pasted into the editor.
After I enabled options, resizing feature by dragging is not working properly.
To Reproduce
https://codesandbox.io/p/devbox/mui-tiptap-demo-forked-g6njhk?file=%2Fsrc%2FuseExtensions.ts%3A166%2C15-166%2C20&workspaceId=383814f0-5631-4226-8011-65cb927d4daf
enable inline true.
Expected behavior
Image resize by dragging is not possible.
Screenshots
System (please complete the following information)
extensions
array used for the editor:The text was updated successfully, but these errors were encountered: