Page anchors added with this plugin will be removed on save by the default HTMLPurifier settings. You may want to document that the the Attr.EnableID option should be set to true in order to keep page anchors.
It's worth mentioning that IDs are disallowed by default because:
without proper configuration, user input can easily break the validation of a webpage by specifying an ID that is already on the surrounding HTML.
HTMLPurifier settings can be modified by creating a .json file in config/htmlpurifier/ (e.g. config/htmlpurifier/Standard.json). Then, this config can be selected when setting up a Redactor field within the field's Advanced options.
Page anchors added with this plugin will be removed on save by the default HTMLPurifier settings. You may want to document that the the
Attr.EnableID
option should be set totrue
in order to keep page anchors.It's worth mentioning that IDs are disallowed by default because:
More information here: http://htmlpurifier.org/live/configdoc/plain.html#Attr.EnableID
HTMLPurifier settings can be modified by creating a .json file in config/htmlpurifier/ (e.g. config/htmlpurifier/Standard.json). Then, this config can be selected when setting up a Redactor field within the field's Advanced options.