13 public function setup($config) {
14 $max = $config->get(
'HTML.MaxImgLength');
16 'img',
'Inline',
'Empty',
'Common',
21 'height' =>
'Pixels#' . $max,
22 'width' =>
'Pixels#' . $max,
27 if ($max === null || $config->get(
'HTML.Trusted')) {
28 $img->attr[
'height'] =
29 $img->attr[
'width'] =
'Length';
33 $img->attr_transform_pre[] =
34 $img->attr_transform_post[] =
addElement($element, $type, $contents, $attr_includes=array(), $attr=array())
Convenience function that sets up a new element.
Represents an XHTML 1.1 module, with information on elements, tags and attributes.
XHTML 1.1 Image Module provides basic image embedding.
Validates a URI as defined by RFC 3986.