diff --git a/docs/modules/Assets.md b/docs/modules/Assets.md index 45f6ea7f1..c1f5b53f5 100644 --- a/docs/modules/Assets.md +++ b/docs/modules/Assets.md @@ -336,6 +336,7 @@ editor.on('asset:custom', props => { // props.types (Array) - Array request asset types, eg. ['image'], // props.container (HTMLElement) - The element where you should place your UI // props.close (Function) - A callback to close the Asset Manager + // props.remove (Function) - A callback to remove an asset // props.select (Function) - A callback to invoke when you want to select the asset // Here you would put the logic to render/update your UI. diff --git a/src/asset_manager/index.js b/src/asset_manager/index.js index 716601686..a943f38d0 100644 --- a/src/asset_manager/index.js +++ b/src/asset_manager/index.js @@ -126,6 +126,7 @@ export default () => { types: bhv.types || [], container: bhv.container, close: () => this.close(), + remove: (...args) => this.remove(...args), select: (asset, complete) => { const res = this.add(asset); isFunction(bhv.select) && bhv.select(res, complete);