Closed ellukesmith closed 1 year ago
Ah-ha, I've also run into this issue. I'll try and work up a fix now as my client has just run into this problem
I've created a pull request, for a quick fix if you want to for the time being, change your require statement in composer to "emilianotisato/nova-tinymce": "dev-master",
, and add the repositories attribute as below:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/motomedialab/nova-flexible-content.git"
}
],
Closed in #380
The unique IDs that get generated for new fields in the Group.js file will sometimes start with a number.
While this is completely valid in the HTML5 spec (the HTML4 spec required IDs to start with a letter) it causes issues if you try to select the element by ID using a document.querySelector. I'm currently using a TinyMCE plugin, which will not render on any fields that have an ID that starts with a number due to the above issue.
Is it possible to modify the randomString method to always return an ID that starts with a letter?
I'd be happy with something like the following:
Thanks.