Skip to content

Extended example request #1201

@ErlendKH

Description

@ErlendKH

Hello,

I was just wondering if the basic example could be extended in the future? I don't understand the basic examples for link and image, as the link has just a decorated underline and the image has just a hardcoded src of 'https://example.com/image.jpg'. How would one modify this example to let the user choose the href value for a link, and then be able to modify it later on? By the way, I found a way to choose a href by using the editor hook, but I don't know how to modify it (just add and remove). As for the image, how can one add an image, either from uploading from the computer, perhaps referencing an image from Sanity, or with an URL? Also, I would have liked to (have the option to) group some of the icons, like having the decorators and the styles in arrays.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions