Remove p tags from around images pulse3

I have been searching for this topic, because I thought this was already discussed, but I can’t find it…
So I post it again. Is there a way to remove those p tags whenever you upload an image? I have been looking at plupload.php line 396…
Would be graet if anyone has the solution to this!

If I am correct information Redactor 10.2.5 is OK.
See the website:✓&q=redactor.
Probably appropriate link:

You can also look Redactor2: Search Redactor2

…>>> Can config to disable auto add paragraph on blocks

Redactor Help

See also other sites.
When enabled, all stuff will be put inside<p> tags (paragraphs). Note that if you enable the Linebreaks setting, the paragraphy mode will be disabled.

1 Like

Thanks! I already downloaded redactor.min.js 10.2.5, and set
linebreaks to true.
Now I wanted to test it om my own testpulse, but somehow I can’t get in anymore…so I have to find another way to test this out…:sob: What the … did I do wrong…

Hi Mary,

I had the same requirement since the extra <p> and </p> were causing thumbnail misalignment on my blog list page.

My simple solution was to get rid of<p> and</p> from the thumbnail before showing it. This can be done in /inc/blog.php:

$thumbnail = $lines[4];
$lines[4] = $thumbnail;

Put those lines before this line:

$lines = array_slice($lines,3);

Hope this helps.
Judhi P


This topic was automatically closed after 2 hours. New replies are no longer allowed.