Coding Davinci Toolboxes

Overview

A davinci toolbox is simply a Javascript module that exports a function called "$run" which is loaded and run whenever the user views or edits a blog. Most toolboxes simply add items to the blog context menu and a set of components to the blog control box, which is a visual set of controls that the user can access to edit a blog.

Requirements

A toolbox is simply a Javascript module with a $run method defined, as in the following:

export function $run(){
  //... implement module here
}
					
The $run function is called using the dependency injection framework when the toolbox is loaded.

Most toolboxes that implement a set of components that user can add to a blog will add items to the blog context menu and the blog control box