@ -2,7 +2,7 @@ import { CommandObject } from './CommandAbstract';
export default {
run(ed) {
ed.DomComponents.clear();
ed.CssComposer.clear();
ed.Components.clear();
ed.Css.clear();
},
} as CommandObject;
@ -268,7 +268,7 @@ export default class CssRule extends StyleableModel<CssRuleProperties> {
const sel = this.getSelectors() as any;
const sngl = sel.length == 1 && sel.at(0);
const cmpId = sngl && sngl.isId() && sngl.get('name');
return (cmpId && this.em?.get('DomComponents').getById(cmpId)) || null;
return (cmpId && this.em?.Components.getById(cmpId)) || null;
}
/**