HtmlEditor - Image size adjustment after upload #1012

Closed
opened 2026-01-29 17:47:44 +00:00 by claunia · 4 comments
Owner

Originally created by @emcga on GitHub (Oct 20, 2023).

Originally assigned to: @akorchev on GitHub.

Is your feature request related to a problem? Please describe.
After adding an image in HtmlEditor, the only way I can see to manipulate an image is to edit the HTML directly. This is an issue
when my clients are using the editor and adding images. Most of the time the size they choose on upload is not correct, and therefore they keep uploading the same image to correct the size. This is not only inconvenient, it consumes space on my server with duplicate data.

Describe the solution you'd like
Have a user friendly way to manipulate the image size after upload.

Describe alternatives you've considered

  1. Modifying the component to incorporate a user friendly interface to manipulate image size.
  2. Use the exiting editor API to get the HTML of the selected/clicked image, parse the HTML and extract the image size, display a dialog to allow the user to modify the image parameters, patch the modified HTML back into the editor. I could not find a reliable way to get the HTML of the clicked image using the existing API.
Originally created by @emcga on GitHub (Oct 20, 2023). Originally assigned to: @akorchev on GitHub. **Is your feature request related to a problem? Please describe.** After adding an image in HtmlEditor, the only way I can see to manipulate an image is to edit the HTML directly. This is an issue when my clients are using the editor and adding images. Most of the time the size they choose on upload is not correct, and therefore they keep uploading the same image to correct the size. This is not only inconvenient, it consumes space on my server with duplicate data. **Describe the solution you'd like** Have a user friendly way to manipulate the image size after upload. **Describe alternatives you've considered** 1. Modifying the component to incorporate a user friendly interface to manipulate image size. 2. Use the exiting editor API to get the HTML of the selected/clicked image, parse the HTML and extract the image size, display a dialog to allow the user to modify the image parameters, patch the modified HTML back into the editor. I could not find a reliable way to get the HTML of the clicked image using the existing API.
claunia added the enhancement label 2026-01-29 17:47:44 +00:00
Author
Owner

@emcga commented on GitHub (Jan 14, 2024):

I will create a pull request for this in the next few weeks.

@emcga commented on GitHub (Jan 14, 2024): I will create a pull request for this in the next few weeks.
Author
Owner

@huxinshuo commented on GitHub (Aug 30, 2024):

We also need Image size adjustment after upload.

@huxinshuo commented on GitHub (Aug 30, 2024): We also need Image size adjustment after upload.
Author
Owner

@emcga commented on GitHub (Aug 30, 2024):

@huxinshuo I'm going to start working on a solution for this again.

@emcga commented on GitHub (Aug 30, 2024): @huxinshuo I'm going to start working on a solution for this again.
Author
Owner

@akorchev commented on GitHub (Aug 30, 2024):

There is currently the ability to change the width and height after selecting the image with the mouse (via dragging). The the image dialog should show the width and height and allow the user to adjust them. I think making selection easier is a viable solution (by clicking the image). I will implement that next week.

@akorchev commented on GitHub (Aug 30, 2024): There is currently the ability to change the width and height after selecting the image with the mouse (via dragging). The the image dialog should show the width and height and allow the user to adjust them. I think making selection easier is a viable solution (by clicking the image). I will implement that next week.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1012