samuelhauser
7/30/2015 - 11:23 AM

Removing empty paragraph on rendering

prototype(TYPO3.Neos.NodeTypes:Text) {
	text.@process.cleanup = ${node.context.workspace.name == 'live' ? String.pregReplace(value, '#<p>(\s|&nbsp;|</?\s?br\s?/?>)*</?p>#', '') : value}
}