- Conditionally keeps margin/padding for ALC posts inside editor

- Adds line breaks for ALC posts in the renderer
This commit is contained in:
Vlad
2016-12-29 13:29:08 -05:00
parent fb29800c7d
commit 698cdecbfe
4 changed files with 21 additions and 8 deletions

View File

@@ -72,9 +72,7 @@ class StructureTransformer {
} else {
return array(
'type' => 'text',
'text' => ($item->getNextSibling()) ?
preg_replace('/\n/', "<p>&nbsp;</p>", $item->toString()) :
$item->toString()
'text' => $item->toString()
);
}