Try our conversational search powered by Generative AI!

TinyMCE imageresizer plugin


When editors uploads though the richtext editor, I want tochange the upload limit the size of files, to limit the size of images.

There is a setting but it seemse i can not find anywhere. is there anywhere where this can be configeruared?

Or do i have to buildt a new pllugin for the editor?

May 22, 2017 15:30

AFAIK, TinyMCE does not have a setting for limiting file size, only attributes like base upload path, file types and file names (see TinyMCE doc)

Could it be you're confusing it with the global maxRequestLength or maxAllowedContentLength attributes in web.config (IIS) ?

May 23, 2017 9:43

Hi Morten,

You would need to create a custom plugin for that.

If you're already using ImageResizer (, I guess the easiest thing would be to create a display template for XhtmlString property (Views / Shared / DisplayTemplate / XhtmlString.cshtml) and append width/height to images.

May 23, 2017 12:07

I would go with the ImageResizer track too. Let them upload but automatically scale image to a fixed max width/height. You need a license though for ImageResizer to get the disc cache working but it's a negligable cost. 

May 23, 2017 14:23

I wrote a blog post on this one:

Jun 10, 2017 11:28
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.