diff options
author | Nicolas Lœuillet <nicolas@loeuillet.org> | 2014-02-21 15:57:10 +0100 |
---|---|---|
committer | Nicolas Lœuillet <nicolas@loeuillet.org> | 2014-02-21 15:57:10 +0100 |
commit | 99679d06884120c57f43b44e55e03595f1f87bed (patch) | |
tree | a3f2a1aa1afdaeca1386d0c6e8a75344fd2241fb /inc/3rdparty/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.DefinitionID.txt | |
parent | 655214ab30ee84884dc408488b85586f36263fcb (diff) | |
parent | d3b47e94705e17b3ba3529cbb1dc6efe69c5d2b7 (diff) | |
download | wallabag-1.5.2.tar.gz wallabag-1.5.2.tar.zst wallabag-1.5.2.zip |
Merge pull request #481 from wallabag/dev1.5.2
1.5.2
Diffstat (limited to 'inc/3rdparty/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.DefinitionID.txt')
-rw-r--r-- | inc/3rdparty/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.DefinitionID.txt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/inc/3rdparty/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.DefinitionID.txt b/inc/3rdparty/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.DefinitionID.txt new file mode 100644 index 00000000..f5433e3f --- /dev/null +++ b/inc/3rdparty/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.DefinitionID.txt | |||
@@ -0,0 +1,33 @@ | |||
1 | HTML.DefinitionID | ||
2 | TYPE: string/null | ||
3 | DEFAULT: NULL | ||
4 | VERSION: 2.0.0 | ||
5 | --DESCRIPTION-- | ||
6 | |||
7 | <p> | ||
8 | Unique identifier for a custom-built HTML definition. If you edit | ||
9 | the raw version of the HTMLDefinition, introducing changes that the | ||
10 | configuration object does not reflect, you must specify this variable. | ||
11 | If you change your custom edits, you should change this directive, or | ||
12 | clear your cache. Example: | ||
13 | </p> | ||
14 | <pre> | ||
15 | $config = HTMLPurifier_Config::createDefault(); | ||
16 | $config->set('HTML', 'DefinitionID', '1'); | ||
17 | $def = $config->getHTMLDefinition(); | ||
18 | $def->addAttribute('a', 'tabindex', 'Number'); | ||
19 | </pre> | ||
20 | <p> | ||
21 | In the above example, the configuration is still at the defaults, but | ||
22 | using the advanced API, an extra attribute has been added. The | ||
23 | configuration object normally has no way of knowing that this change | ||
24 | has taken place, so it needs an extra directive: %HTML.DefinitionID. | ||
25 | If someone else attempts to use the default configuration, these two | ||
26 | pieces of code will not clobber each other in the cache, since one has | ||
27 | an extra directive attached to it. | ||
28 | </p> | ||
29 | <p> | ||
30 | You <em>must</em> specify a value to this directive to use the | ||
31 | advanced API features. | ||
32 | </p> | ||
33 | --# vim: et sw=4 sts=4 | ||