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 { |
|||
run(ed) { |
|||
const em = ed.getModel(); |
|||
const models = [...ed.getSelectedAll()]; |
|||
models.length && em.set('clipboard', models); |
|||
}, |
|||
}; |
|||
} as CustomCommand; |
|||
Loading…
Reference in new issue