Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2023-07-23 01:21:42

agovella
Member
From: Houston, TX
Registered: 2005-05-01
Posts: 65
Website Twitter

[solved] article_image not hiding height and width attributes?

This article_image tag in a form:

<txp:article_image class=“article-image” height=“0” width=“0” />

…generates this image tag with the height and width attributes still visible:

<img src=“https://pxd.gd/images/20.png” alt=”“ class=“article-image” width=“2346” height=“1322”>

The same article_image tag in the body of an article produces this image tag:

<img src=“https://pxd.gd/images/20.png” alt=”“ class=”“article-image”” width=“0” height=“0”>

Last edited by agovella (2023-07-26 14:29:31)

Offline

#2 2023-07-26 02:34:56

agovella
Member
From: Houston, TX
Registered: 2005-05-01
Posts: 65
Website Twitter

Re: [solved] article_image not hiding height and width attributes?

This is a known issue. Forum discussion and easy workaround here on the forum:
https://forum.textpattern.com/viewtopic.php?id=51833

Fix planned for the next release.

Offline

Board footer

Powered by FluxBB