DEV Community

Discussion on: SlateJS: Adding Images and Links

Collapse
 
viktorb98611515 profile image
Viktor Borisov • Edited

Thank you very useful!
Do you have an idea how to have a link from image ?
Having a node with structure like this, does not work for me:
{
type: 'link',
url: 'google.com',
children: [{type:'image', url: 'srcOfImg', children:[]}]
}
When I insert it the 'image' child is removed.