dhtml editor image set to 300px
When we use the image button in dhtml editor to submit image image is set to 300px width even though we leave the image width option blank
Publisher 1.05 RC 2 XOOPS Version | XOOPS 2.5.9 PHP Version | 5.6.25 mySQL Version | 5.7.14
The xcode img tag is processed using the textsanitizer image extension.
It has a configuration file at htdocs/class/textsanitizer/image/config.php that controls the resizing behavior:
return $config = array(
// Click to open an image in a new window in full size using CaricaFoto
'clickable' => 0,
// Resize the image down to max_width set below
'resize' => 1,
// Maximum width of an image displayed on page, otherwise it will be resized
'max_width' => 300);
You can edit this configuration using a text editor. Changing 'resize' to 0 will disable resizing, or 'max_width' can be adjusted to a larger size.
Without changing the configuration, if you specify a width larger than the image width (i.e. 9999,) it should appear full size.
For the long term, a better method for all of the textsanitizer configurations is a high priority. For now, I hope this information helps.
The code 'works as intended'. As @geekwright stated there is some work to be done to improve textsanitizer configurations however this would be an enhancement to the current implementation. We'll leave this item open for review but it has been 'pushed' to a future (>2.5.11) release.