Try our conversational search powered by Generative AI!

TinyMCE imageresizer plugin

Vote:
 

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?

#178785
May 22, 2017 15:30
Vote:
 

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) ?

#178809
May 23, 2017 9:43
Vote:
 

Hi Morten,

You would need to create a custom plugin for that.

If you're already using ImageResizer (https://imageresizing.net/), 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.

#178814
May 23, 2017 12:07
Vote:
 

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. 

#178820
May 23, 2017 14:23
Vote:
 

I wrote a blog post on this one: https://www.dcaric.com/blog/resizing-images-in-episerver

#179397
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.