maxImageDisplayWidth

Availability: >= 3.1.3

Type: Object Property

Description: Default maximum width of images

Syntax:

$editor->maxImageDisplayWidth int $width

This sets the default maximum width of images when inserting an image into the document. This only affects the HTML code for the image, it does not resize the image itself. Users can easily override this by specifying a different width or by dragging to resize the image in the editor.

To force images to be resized when they are uploaded see maxImageWidth and maxImageHeight

See also:

maxImageDisplayHeight, maxMediaDisplayWidth, maxMediaDisplayHeight