@kademi/keditor
Version:
KEditor is a jQuery plugin which provides a content editor with drag n drop, configurable contents
14 lines (10 loc) • 413 B
JavaScript
import getComponentType from './getComponentType';
export default function (component) {
let self = this;
let componentType = getComponentType.call(self, component);
let componentData = KEditor.components[componentType];
if (typeof componentData.destroy === 'function') {
componentData.destroy.call(componentData, component, self);
}
component.remove();
};