[opencms-dev] Using user defined image formats with WYSIWYG editor (in 8.5. and 9)

Claus Priisholm cpr at codedroids.com
Mon Feb 17 10:49:00 CET 2014


While it is possible to set predefined image formats for cropping via the
XSD schemas for specific content, it does not seem to be possible to do the
same when using images inside the WISYWIG editor widget. The editor always
uses some default values.

And it appears that these default values are actually hard coded in the GWT
code (both names and configuration). The
CmsImageFormatHandler.readFormatsConfig() checks for modus and only when
using it in widget mode it will attempt to find custom settings, otherwise
it will always fall back to the hard coded defaults.

Obviously there is no place to put the custom formats when using the editor
since the CmsHtmlWidgetOption does not have parameters for it so there is
only to fall back to some default values. This would actually be ok for my
purpose if only the defaults could be configured.

Any ideas as how to either set per editor widget field or just the "global"
defaults?

-- 
Claus Priisholm
+45 8120 1337
cpr (you know what) codedroids.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20140217/1be42cb3/attachment.htm>


More information about the opencms-dev mailing list