sebkln / content_slug

Adds a slug field for human-readable anchors ("domain.com/page/#my-section") to TYPO3 content elements. By default, this anchor is rendered as the header's id attribute.
GNU General Public License v2.0
11 stars 5 forks source link

Immediate JavaScript validation #1

Closed sebkln closed 4 years ago

sebkln commented 4 years ago

Current state: the fragment identifiers are properly evaluated and sanitized when the content element is saved.

However, it would be nice to evaluate/sanitize the entered fragment as soon as the editor leaves the form field. The editor would immediately see what his fragment will be rendered like.

The custom form evaluation class already provides the function returnFieldJS() which will be called when the blur event is fired.