diff --git a/src/dom_components/model/Component.js b/src/dom_components/model/Component.js index 7a7abb58e..63878cf51 100644 --- a/src/dom_components/model/Component.js +++ b/src/dom_components/model/Component.js @@ -66,7 +66,6 @@ export const keyUpdateInside = `${keyUpdate}-inside`; * will be hidden from the style manager. Default: `true` * @property {Array} [stylable-require=[]] Indicate an array of style properties to show up which has been marked as `toRequire`. Default: `[]` * @property {Array} [unstylable=[]] Indicate an array of style properties which should be hidden from the style manager. Default: `[]` - * @property {Array} [style-signature=''] This option comes handy when you need to remove or export strictly component-specific rules. Be default, if this option is not empty, the editor will remove rules when there are no components, of that type, in the canvas. Eg. '['.navbar', '[navbar-']'. Default: `''` * @property {Boolean} [highlightable=true] It can be highlighted with 'dotted' borders if true. Default: `true` * @property {Boolean} [copyable=true] True if it's possible to clone the component. Default: `true` * @property {Boolean} [resizable=false] Indicates if it's possible to resize the component. It's also possible to pass an object as [options for the Resizer](https://github.com/artf/grapesjs/blob/master/src/utils/Resizer.js). Default: `false` diff --git a/src/dom_components/model/Components.js b/src/dom_components/model/Components.js index 2c4ed1fc0..365bb54ae 100644 --- a/src/dom_components/model/Components.js +++ b/src/dom_components/model/Components.js @@ -82,10 +82,11 @@ export default Backbone.Collection.extend({ sels.remove(rulesRemoved.map(rule => rule.getSelectors().at(0))); if (!removed.opt.temporary) { - const cm = em.get('Commands'); - const hasSign = removed.get('style-signature'); - const optStyle = { target: removed }; - hasSign && cm.run('core:component-style-clear', optStyle); + // Deprecate 'style-signature' + // const cm = em.get('Commands'); + // const hasSign = removed.get('style-signature'); + // const optStyle = { target: removed }; + // hasSign && cm.run('core:component-style-clear', optStyle); removed.removed(); removed.trigger('removed'); em.trigger('component:remove', removed);