heidkaemper / craft-redactor-anchors

Support for anchors in Craft CMS Redactor
https://plugins.craftcms.com/redactor-anchors
MIT License
10 stars 4 forks source link

FR: Use selected text for anchors initial value. #1

Closed alexroper closed 4 years ago

alexroper commented 5 years ago

Typing the anchor in manually or even copying and pasting can get tedious. It'd be great if when you click the anchor button, it uses the text currently selected to create to fill in the anchor value in the modal dialog. It would also convert it to kebab case to make it valid.

For example:

If I have the text "Top 10 Craft Plugins" selected, it would set the initial anchor value to top-10-craft-plugins.

heidkaemper commented 4 years ago

new version available: https://github.com/Utakka/craft-redactor-anchors/releases/tag/1.1.0