ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Mention plugin - ability to insert something inside attribute element

Open dbojarski opened this issue 4 years ago • 5 comments

📝 https://ckeditor.com/docs/ckeditor5/latest/features/mentions.html

I'd like to insert <img inside 'a' element in downcast. It can be 'a', 'span' whatever. The problem is that this is AttributeElement and I can't create img and insert it like

writer.insert(writer.createPositionAt(myAttributeElement, 0), myImage) because I get an error view-writer-invalid-position-container. I know that it would work if downcast was elementToElement with 'createContainerElement' instead of 'createAttributeElement' but the Mention plugin expects to have downcasting written as it is. Can I in someway append actually any other element inside AttributeElement?

📃 Other details

  • Installed CKEditor plugins: Mentions

If you'd like to see this improvement implemented, add a 👍 reaction to this post.

dbojarski avatar Sep 09 '20 13:09 dbojarski