Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export the services configuration #77

Open
Haraldson opened this issue Nov 29, 2021 · 0 comments
Open

Export the services configuration #77

Haraldson opened this issue Nov 29, 2021 · 0 comments

Comments

@Haraldson
Copy link

Haraldson commented Nov 29, 2021

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>`
            }
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant