Image size inline in html widget
Atle Enersen via opencms-dev <[email protected]> Fri, 9 Jan 2026 10:03:32 +0000
| Newsgroups | gmane.comp.cms.opencms.devel |
|---|---|
| Message-ID | <AM0PR10MB962414F4E4B1573187439967A982A@AM0PR10MB9624.EURPRD10.PROD.OUTLOOK.COM> |
--===============3643949870768273201==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_AM0PR10MB962414F4E4B1573187439967A982AAM0PR10MB9624EURP_"
--_000_AM0PR10MB962414F4E4B1573187439967A982AAM0PR10MB9624EURP_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Hello.
This page displays the problem. OpenCms uses images=92 inserted in html wid=
get via imagegallery in TinyMCE original size (width). One could scale imag=
es 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=3D=
/.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
--_000_AM0PR10MB962414F4E4B1573187439967A982AAM0PR10MB9624EURP_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns:m=3D"http://schemas.microsoft.com/of=
fice/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#467886;
text-decoration:underline;}
span.EpostStil17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang=3D"NO-BOK" link=3D"#467886" vlink=3D"#96607D" style=3D"word-wrap=
:break-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hello.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">This page displays the problem. OpenCms uses images=
=92 inserted in html widget via imagegallery in TinyMCE original size (widt=
h). One could scale images down manually, but what if we want the system to=
take care of it?<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><a href=3D"https://klanen.no/system/modules/org.klan=
en.core/templates/index.jsp?ref=3D/.content/klanenarticlenormal/klanenartic=
lenormal_00067.xml">https://klanen.no/system/modules/org.klanen.core/templa=
tes/index.jsp?ref=3D/.content/klanenarticlenormal/klanenarticlenormal_00067=
.xml</a><o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">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?<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class=3D"MsoNormal"><span style=3D"mso-ligatures:none;mso-fareast-langua=
ge:NO-BOK">Best regards/Vennlig hilsen, Atle Enersen<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"mso-ligatures:none;mso-fareast-langua=
ge:NO-BOK">-- <o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"mso-ligatures:none">Tel.: +47 48 06 3=
1 71<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>
--_000_AM0PR10MB962414F4E4B1573187439967A982AAM0PR10MB9624EURP_--
--===============3643949870768273201==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVGhpcyBtYWls
IGlzIHNlbnQgdG8geW91IGZyb20gdGhlIG9wZW5jbXMtZGV2IG1haWxpbmcgbGlzdApUbyBjaGFu
Z2UgeW91ciBsaXN0IG9wdGlvbnMsIG9yIHRvIHVuc3Vic2NyaWJlIGZyb20gdGhlIGxpc3QsIHBs
ZWFzZSB2aXNpdApodHRwczovL2xpc3RzLm9wZW5jbXMub3JnL21haWxtYW4vbGlzdGluZm8vb3Bl
bmNtcy1kZXYKCgoK
--===============3643949870768273201==--