import ApiPaneProps from './ApiPaneProps' ; import ApiPlaygroundPane from './ApiPlaygroundPane' ; import SidePanePluginImpl from '../SidePanePluginImpl' ; import { PluginEvent } from 'roosterjs-editor-types' ; import { SidePaneElementProps } from '../SidePaneElement' ; export default class ApiPlaygroundPlugin extends SidePanePluginImpl < ApiPlaygroundPane , ApiPaneProps > { constructor ( ) { super ( ApiPlaygroundPane , 'api' , 'API Playground' ) ; } getComponentProps ( base ) { return { ... base , getEditor : ( ) => { return this . editor ; } , } ; } onPluginEvent ( e ) { this . getComponent ( component => component . onPluginEvent ( e ) ) ; } }