📄 styleattribute.php
字号:
<?phprequire_once 'HTMLPurifier/HTMLModule.php';require_once 'HTMLPurifier/AttrDef/CSS.php';/** * XHTML 1.1 Edit Module, defines editing-related elements. Text Extension * Module. */class HTMLPurifier_HTMLModule_StyleAttribute extends HTMLPurifier_HTMLModule{ var $name = 'StyleAttribute'; var $attr_collections = array( // The inclusion routine differs from the Abstract Modules but // is in line with the DTD and XML Schemas. 'Style' => array('style' => false), // see constructor 'Core' => array(0 => array('Style')) ); function setup($config) { $this->attr_collections['Style']['style'] = new HTMLPurifier_AttrDef_CSS(); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -