Opened 3 years ago

Last modified 3 years ago

#11964 confirmed New Feature

max width for medias

Reported by: datalink Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0
Keywords: Cc:

Description

If users can resize images, flash or iframes, there should be a maximum for the width value. The value could be the width of the parent element.

Example:

<div style="width: 500px">
<img src="myimage.jpg" />
</div>

In image dialog, if is set a width value greater than 500, the value should be changed to 500, because the width of the parent div is 500 pixels.

If resize handlers are used, resizing should be stopped, when width is greater then 500 pixels.

Same for other medias like flash, iframes, tables or own fake elements.

Is it possible? Think this would be a nice feature, aspecially for inline editors.

Change History (1)

comment:1 Changed 3 years ago by Jakub Ś

Status: newconfirmed
Version: 4.0

As discussed with @Reinmar, we could assign on images max-width which is width of parent container. When resize is done it could be disabled when this value is reached.

NOTE: This can't be done with native browser resize that is available in FF or IE. This can only be done with custom resize like the one implemented for image2 and requires disabling native resize.

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy