use dom to generate linebreaks after images in articles
This commit is contained in:
parent
2ab31493c9
commit
fa40373395
|
@ -3751,8 +3751,18 @@
|
||||||
rewrite_relative_url($site_url, $entry->getAttribute('src')));
|
rewrite_relative_url($site_url, $entry->getAttribute('src')));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW', $owner)) {
|
if (strtolower($entry->nodeName) == "a") {
|
||||||
$entry->setAttribute("target", "_blank");
|
if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW', $owner)) {
|
||||||
|
$entry->setAttribute("target", "_blank");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (strtolower($entry->nodeName) == "img") {
|
||||||
|
$br = $doc->createElement("br");
|
||||||
|
|
||||||
|
if ($entry->parentNode->nextSibling)
|
||||||
|
$entry->parentNode->insertBefore($br, $entry->nextSibling);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,6 @@ div.postReply div.postContent {
|
||||||
div.postReply div.postContent img {
|
div.postReply div.postContent img {
|
||||||
border-width : 0px;
|
border-width : 0px;
|
||||||
max-width : 98%;
|
max-width : 98%;
|
||||||
display : block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.postReply div.postIcon {
|
div.postReply div.postIcon {
|
||||||
|
|
Loading…
Reference in New Issue