directus
directus copied to clipboard
List in block editor generating hyperlink on the next line
Describe the Bug
When using a list in the block editor, after creating a link, when you press enter to make a new list item, the editor generates a copy of the link in the next item.
An example of the raw value:
{
"time": 1717124750891,
"blocks": [
{
"id": "zT9RSGb6BI",
"type": "nestedlist",
"data": {
"style": "unordered",
"items": [
{
"content": "<a href=\"https://www.google.com\">link</a>",
"items": []
},
{
"content": "not a link<a href=\"https://www.google.com\"></a>",
"items": []
}
]
}
}
],
"version": "2.29.1"
}
To Reproduce
- Create a Block Editor field.
- Add a list block.
- Create a link in the first line.
- Press enter.
Directus Version
10.11.1
Hosting Strategy
Self-Hosted (Custom)
Database
No response
I believe this is similar or the same issue as https://github.com/codex-team/editor.js/issues/2545
This is a known issue at editorjs, which we've flagged over at their repo. As it's a third-party package it's very tricky for us to fix internally. As such I'm going to close this out.