mirror of https://github.com/artf/grapesjs.git
1 changed files with 3 additions and 1 deletions
@ -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…
Reference in new issue