Iām developing a DatoCMS plugin to enhance multilingual accessibility in structured text fields using customMarksForStructuredTextField. The plugin needs to implement a custom mark that, similar to the native āAdd Linkā functionality, opens a modal dialog for capturing language-specific metadata. Specifically, Iām looking to:
Create a custom mark that triggers a modal interface
Capture language attributes and accessibility metadata through the modal
Persist these attributes within the structured text fieldās mark system
Implement a UI pattern similar to DatoCMSās native link handling
Unfortunately, I donāt think our structured text customizations allow quite this level of functionality inside our editor It could be a feature request here on the forum.
However, maybe you can get similar enough functionality by linking to another record first instead of a URL, and then putting that other metadata inside the other record? For example, Iāve made a new model called āLocalized Links with Metadataā:
Thank you for the suggestion. While this approach could serve as an interim solution, Iām specifically focused on optimizing the content management workflow for our editorial team by minimizing direct code intervention.
To clarify my requirements: Iām looking to implement functionality similar to the native āAdd Linkā markās modal interface, but with a different purpose. Rather than managing hyperlinks, this implementation would facilitate language attribution for multilingual content elements (such as business names or culturally-specific terms) within our content. Ideally, the modal would present a select interface populated with our siteās supported languages, allowing editors to efficiently tag content segments with appropriate language metadata.
I recognize this specific functionality isnāt currently available. Iāll be submitting a feature request to address this use case, as it would benefit organizations managing multilingual content through DatoCMS.
I appreciate your assistance in exploring potential solutions.