mirror of https://github.com/artf/grapesjs.git
4 changed files with 26 additions and 11 deletions
@ -0,0 +1,9 @@ |
|||||
|
module.exports = { |
||||
|
|
||||
|
run(editor) { |
||||
|
const comp = editor.getSelected(); |
||||
|
const coll = comp && comp.collection; |
||||
|
coll && coll.parent && editor.select(coll.parent); |
||||
|
} |
||||
|
|
||||
|
}; |
||||
Loading…
Reference in new issue