Welcome! » Log In » Create A New Profile

Style attribute 'page-break-after' is not supported (for information on implementing this, see the support forums)

Posted by Sérgio Reis 

Getting this message when trying to use page-break css atributes.

`Style attribute 'page-break-after' is not supported (for information on implementing this, see the support forums) `

Using this package which seems to be a wrapper around htmlpurifier.

using 'HTML.Allowed' => 'div[style] ....', 'CSS.AllowedProperties' => 'page-break-after,page-break-before,....',

Yes, it's not natively supported. Do you want to implement it? In that case you'll have to muck around with CSSDefinition.php

Author:
Your Email:

Subject:

HTML input is enabled. Make sure you escape all HTML and angled brackets with < and >.

Auto-paragraphing is enabled. Double newlines will be converted to paragraphs; for single newlines, use the pre tag.

Allowed tags: a, abbr, acronym, b, blockquote, caption, cite, code, dd, del, dfn, div, dl, dt, em, i, ins, kbd, li, ol, p, pre, s, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var.

For inputting literal code such as HTML and PHP for display, use CDATA tags to auto-escape your angled brackets, and pre to preserve newlines:

<pre><![CDATA[
Place code here
]]></pre>

Power users, you can hide this notice with:

.htmlpurifier-help {display:none;}

Message: