Open
Description
Describe the bug or issue here…
Steps to Reproduce
- Go to https://trix-editor.org/
- Delete all of the content
- Paste the following code into the console and run it
(() => {
const trix = document.querySelector("trix-editor");
const attachment = new Trix.Attachment({
"attachment-type": "custom",
"content": "<div data-item-id='123'>Content</div>",
"contentType": "custom"
});
trix.editor.insertAttachment(attachment)
})()
- Inspect the attachment within Trix and see that the div element is missing the data-item-id attribute
This was working fine prior to version 2.1.4.
Details
- Trix version: 2.1.4
- Browser name and version: Chrome 127.0.6533.89 (Official Build) (arm64)
- Operating system: MacOS
Metadata
Metadata
Assignees
Labels
No labels