whitecube / nova-flexible-content

Flexible Content & Repeater Fields for Laravel Nova
MIT License
788 stars 228 forks source link

Resolve HTML5 standard invalid unique IDs being generated #380

Closed chrispage1 closed 1 year ago

chrispage1 commented 2 years ago

A HTML ID attribute must begin with a letter. However currently there is a possibility that it can be a number, which breaks fields that depend on ID selection, such as Nova TinyMCE Editor

This is a simple pull request that prefixes uniquely generated IDs with a 'c' character, thus ensuring that all IDs always begin with a letter.

chrispage1 commented 2 years ago

Issue raised by @ellukesmith - #377

jShox commented 2 years ago

+1