diff --git a/src/style_manager/index.js b/src/style_manager/index.js index 1dfec465c..324d45083 100644 --- a/src/style_manager/index.js +++ b/src/style_manager/index.js @@ -9,10 +9,15 @@ * }) * ``` * - * Once the editor is instantiated you can use its API. Before using these methods you should get the module from the instance + * Once the editor is instantiated you can use its API and listen to its events. Before using these methods, you should get the module from the instance. * * ```js + * // Listen to events + * editor.on('style:sector:add', (sector) => { ... }); + * + * // Use the API * const styleManager = editor.StyleManager; + * styleManager.addSector(...); * ``` * ## Available Events * * `style:sector:add` - Sector added. The [Sector] is passed as an argument to the callback.