implement plugin architecture in editor

/**
*
* initialize BarChart Plugin
*
* @param {Editor} editor
*/
export default function (editor) {
// register item layer
editor.registerItem(BAR_CHART_TYPE, BarChartLayer )
// register inspector editor
editor.registerInspector(BAR_CHART_TYPE, BarChartLayerInspector)
// register html renderer
editor.registerRenderer('html', BAR_CHART_TYPE, new BarChartHTMLRender() )
// register control ui
editor.registerElement({
AddBarChart
})
}
easylogic Author

I make plugin system.

0 Likes

Please sign in to leave a comment.