[opencms-dev] Image size inline in html widget
Lorenz Lammersdorf
l.lammersdorf at ik.me
Fri Jan 9 16:20:15 CET 2026
Hi Atle,
I'm not sure which Tinymce image processing plugins are installed by
Opencms, but you don't need to deal with Tinymce's config. Simply add
.mt-4 img {
width: 1000px !important;
max-width: 100%;
}
to /system/modules/org.klanen.core/resources/css/klanen.css
Regards
Lorenz
Am 09.01.2026 um 11:03 schrieb Atle Enersen via opencms-dev:
> Hello.
>
> This page displays the problem. OpenCms uses images’ inserted in html
> widget via imagegallery in TinyMCE original size (width). One could
> scale images down manually, but what if we want the system to take care
> of it?
>
> https://klanen.no/system/modules/org.klanen.core/templates/index.jsp?
> ref=/.content/klanenarticlenormal/klanenarticlenormal_00067.xml
> <https://klanen.no/system/modules/org.klanen.core/templates/index.jsp?
> ref=/.content/klanenarticlenormal/klanenarticlenormal_00067.xml>
>
> The html-wiget itself have no documented support on manipulation the
> width/height of the image. ChatGPT suggests to do it in an TinyMCE-
> configuration. The docs does not document this. If this is correct,
> which config file is it?
>
> Best regards/Vennlig hilsen, Atle Enersen
>
> --
>
> Tel.: +47 48 06 31 71
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> https://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
More information about the opencms-dev
mailing list