Add anchor functionality for Redactor in Craft CMS
- Run Composer in your project folder:
composer require utakka/redactor-anchors
-
Open your Craft Control Panel, navigate to Plugins and click 'Install' for Redactor Anchors.
-
Add
redactoranchors
to plugins array in your Redactor config. Example:
{
"buttons": ["bold", "italic", "unorderedlist", "link", "redactoranchors", "image"],
"plugins": ["fullscreen", "redactoranchors"],
"linkNewTab": true,
"toolbarFixed": true
}
There is a redactor-config-sample.json, too.