Export the services configuration
Haraldson opened this issue · 0 comments
Haraldson commented
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>`
}
}
}
}