Registering elements in JavaScript

Each element should have an editor.js file where the element is registered to Zion Builder plugin

import myElement from './components/myElement.vue'

import { registerElementComponent } from '@zb/editor'

registerElementComponent({
    elementType: 'my_element',
    component: myElement
})

Was this article helpful ?

105 people consider this article helpful
Thank you! We will improve this article.

Didn’t find what you’re looking for? Please let us know

Submit a ticket