styleattribute.php

来自「很棒的在线教学系统」· PHP 代码 · 共 27 行

PHP
27
字号
<?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 + =
减小字号Ctrl + -
显示快捷键?