mirror of https://github.com/artf/grapesjs.git
5 changed files with 10 additions and 21 deletions
@ -1,13 +0,0 @@ |
|||
module.exports = { |
|||
run(editor) { |
|||
const sel = editor.getSelected(); |
|||
let comp = sel && sel.parent(); |
|||
|
|||
// Recurse through the parent() chain until a selectable parent is found
|
|||
while (comp && !comp.get('selectable')) { |
|||
comp = comp.parent(); |
|||
} |
|||
|
|||
comp && editor.select(comp); |
|||
} |
|||
}; |
|||
Loading…
Reference in new issue