Skip to content

How to insert() embed programmatically? #16

@cossssmin

Description

@cossssmin

For example, imagine typing the source URL in a text input, then feeding it to the insert() method:

editor.blocks.insert('embed', {source: url}, {}, index, true)

Of course, that won't work because the service and embed URL have not been set.

How can you insert an embed block based just on the source URL, without parsing the service and embed URL yourself?

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