Browse Source

TS CopyComponent

ts-style-manager
Artur Arseniev 4 years ago
parent
commit
2ce1bd848f
  1. 4
      src/commands/view/CopyComponent.ts

4
src/commands/view/CopyComponent.js → src/commands/view/CopyComponent.ts

@ -1,7 +1,9 @@
import { CustomCommand } from './CommandAbstract';
export default { export default {
run(ed) { run(ed) {
const em = ed.getModel(); const em = ed.getModel();
const models = [...ed.getSelectedAll()]; const models = [...ed.getSelectedAll()];
models.length && em.set('clipboard', models); models.length && em.set('clipboard', models);
}, },
}; } as CustomCommand;
Loading…
Cancel
Save