BitRichTextEditor image resize
Is there an existing issue for this?
- [x] I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
is there support for BitRichTextEditor to resize image within its editor.
Describe the solution you'd like
I don;t have any solution yet.
Additional context
No response
Hello there! I'm a wiki 🤖.
Based on the content of this thread, I've found a potentially relevant wiki page for you!
I hope this helps!
Thanks for contacting us. We're investigating this issue. We'll let you know if it's possible to work on this issue.
The BitRichTextEditor as mentioned on the demo page (https://blazorui.bitplatform.dev/components/richtexteditor) is using the Quill (https://quilljs.com/) library. unfortunately, since this library doesn't support such a feature, and the fact that we don't have enough resource to develop it ourselves, this request is not feasible for now.
Note that Quill stores images as base64 which increases the size by 40% just like the rest of the editors out there, and if you use image in pre-rendering, it would cost double (one because of pre-rendering's img's src with base64 image value, and another time because of the same value being stored in pre-render state)
Thank you so much. I really appreciate your response. I want thinking is it possible to use existing plugins others have generated so it doesn't have to be generated from scratch. i.e
https://github.com/whatcould/quill-image-resize-module?tab=readme-ov-file
Here is a sample from the link I sent above:
For example, on line 52 of the TS for BitRichTextEditor, the resize module can be added.
modules: { imageResize: { displaySize: true }
What do you think
Could you please give me a live playground that uses QuillJS and those plugins to resize and drag & drop?
Sure. Here is the playground: https://plnkr.co/edit/gq708AOrSBOWSlHcFslG?p=preview&preview
Supporting the plugins (custom modules) of the Quill was not in our plan for this component. but I will take a look at its design and see if it's possible to handle it in short time.
Thank you so much for trying to give it a try. I am more consign about the image resizing. The drag and drop are great feature but I think its something that can be addressed later.
I've reviewed the design of the Quill custom modules and decided to support it in our component.
The GitHub repository for the custom module you provided is a fork of another repository, which is itself a fork of yet another one. All three are built on outdated versions of Quill that are incompatible with our component. I’ve forked the main repository into our ignite organization and updated its source code and documentation here:
https://github.com/bitignite/quill-image-resize-module
This repository is based on the original project from which the other two were forked. I’ll review the changes in the other two forks later to identify any useful updates to incorporate into our fork.
The issue is accepted and planned. Resolving it will start ASAP.
Resolving this issue has started. It will be announced when this issue is resolved.
Awesome work team. Thank you so much for giving it a shot. I am glad to hopefully see this feature in future release. Thank you once again
This issue has been resolved, and it will be available in the next pre-release version. It will be announced when the pre-release becomes ready.
The pre-release has been published. Please give it a try and provide feedback.