embed icon indicating copy to clipboard operation
embed copied to clipboard

Export the services configuration

Open Haraldson opened this issue 2 years ago • 0 comments

In order to avoid repeating too much when overriding a service’s configuration only partially, it’d be great to be able to extend the bundled configuration:

import Embed, { services } from '@editorjs/embed'

// …

embed: {
    class: Embed,
    config: {
        services: {
            vimeo: {
                ...services.vimeo,
                html: `<div class="vimeo-wrap">${services.vimeo.html}</div>`
            }
        }
    }
}

Haraldson avatar Nov 29 '21 13:11 Haraldson