mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-05 21:57:26 +02:00
[1.7.0] Update HTMLDefinition printer with some of the new attributes.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1192 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -13,17 +13,6 @@ if (file_exists('printDefinition.settings.php')) {
|
||||
include 'printDefinition.settings.php';
|
||||
}
|
||||
|
||||
/* // sample local definition, obviously needs to be less clunky
|
||||
$html_definition =& $config->getHTMLDefinition(true);
|
||||
$module = new HTMLPurifier_HTMLModule();
|
||||
$module->name = 'Marquee';
|
||||
$module->info['marquee'] = new HTMLPurifier_ElementDef();
|
||||
$module->info['marquee']->content_model = '#PCDATA | Inline';
|
||||
$module->info['marquee']->content_model_type = 'optional';
|
||||
$module->content_sets = array('Inline' => 'marquee');
|
||||
$html_definition->manager->addModule($module);
|
||||
*/
|
||||
|
||||
$printer_html_definition = new HTMLPurifier_Printer_HTMLDefinition();
|
||||
$printer_css_definition = new HTMLPurifier_Printer_CSSDefinition();
|
||||
|
||||
@@ -51,6 +40,7 @@ echo '<?xml version="1.0" encoding="UTF-8" ?>';
|
||||
.HTMLPurifier_Printer caption {font-size:1.5em; font-weight:bold;
|
||||
width:100%;}
|
||||
.HTMLPurifier_Printer .heavy {background:#99C;text-align:center;}
|
||||
.HTMLPurifier_Printer .unsafe {background:#C99;}
|
||||
dt {font-weight:bold;}
|
||||
</style>
|
||||
<link rel="stylesheet" href="../library/HTMLPurifier/Printer/ConfigForm.css" type="text/css" />
|
||||
|
Reference in New Issue
Block a user