Skip to content
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

HtmlEditor - Upload Images #7268

DokaRus opened this issue Mar 13, 2019 · 2 comments


None yet
3 participants
Copy link

commented Mar 13, 2019

The Problem

There are three ways to add an image to a web-based rich editor:

  • Use the image's URL
  • Drag-and-drop the image or paste it from the clipboard and encode it in base64
  • Upload the image to a server

At the moment, the HtmlEditor supports only the first two.

The Proposed Solution

We plan to rework the image dialog to allow you to upload files to the server.

We consider adding an imageUploading option that accepts an object with the following structure:

imageUploading: { 
  uploadUrl: string, // Specifies the target URL for the upload request
  enabled: boolean // true: the HtmlEditor uploads the image to the server and pastes the URL into the content 
                   // false: the HtmlEditor inserts the image into the content as a base64 code

UI Design

Image Dialog

Try It

Coming soon

We Need Your Feedback

Take a Quick Poll

Do you find the capability to upload images in the HtmlEditor useful?

Get Notified of Updates

Subscribe to this thread or to our Facebook and Twitter accounts for updates on this topic.


This comment has been minimized.

Copy link

commented Mar 19, 2019

Please provide some details around the upload process to a server. Ideally I'd like the solution to be strictly HTML5 and upload files through RESTful POSTS of the files to a separate, RESTFUL API or to a specific server location.

Our application currently uses a file upload location within the applications application folder, e.g. [root]/images/userImages. We want to constrain images to only use that location, and pre-validate the image being uploaded so that it's only a small JPG.

We have this working currently using ASP.Net Web RAZOR on the front end, but it doesn't work well because I need to run it separately from the remainder of the app which is HTML5 only on the front end. Thus I wanted to eliminate the use of RAZOR (or any client-side ASP.Net component). If I understand correctly, this image upload solution will do that.


This comment has been minimized.

Copy link
Contributor Author

commented Mar 20, 2019

We'll use a built-in FileUploader widget to add the ability to upload images. We'll definitely provide a way to customize its options (like maxFileSize that would be helpful in your case).
We will update this issue once we discuss the API in the team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.