Forum

Thread tagged as: Question, Configuration, Addons

Scaling images in markitup

Hi

Is there a way to scale an image when adding one into a textarea box. When inserted it is full size with no option to give a size or to float left or right only a title.

Or, is the only solution is to use html editor addon?

regards Rob Willox

Rob Willox

Rob Willox 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

See "optional image attributes" in the docs: https://docs.grabaperch.com/docs/templates/attributes/type/textarea/

Hi Rachel

Thanks for the pointer and have been able to resize the image with the image attributes and css so that it fits the space and scales responsively when on smaller screen sizes.

The only downside is if using an class on the section div the image appears in, it is a fixed size and orientation for every img added.

Another way it works is adding a span around the image markitup code and using different classes to resize and float left or right but the user would have to remember the class names.

Otherwise everything is working as required.

Drew McLellan

Drew McLellan 2638 points
Perch Support

You can use the imageclasses attribute to give class name options.