|
|
@ -176,6 +176,7 @@ export default { |
|
|
this.updateToolsGlobal(); |
|
|
this.updateToolsGlobal(); |
|
|
// This will hide some elements from the select component
|
|
|
// This will hide some elements from the select component
|
|
|
this.updateToolsLocal(result); |
|
|
this.updateToolsLocal(result); |
|
|
|
|
|
this.initResize(component); |
|
|
}), |
|
|
}), |
|
|
|
|
|
|
|
|
updateGlobalPos() { |
|
|
updateGlobalPos() { |
|
|
@ -422,8 +423,7 @@ export default { |
|
|
const resizeClass = `${pfx}resizing`; |
|
|
const resizeClass = `${pfx}resizing`; |
|
|
const model = |
|
|
const model = |
|
|
!isElement(elem) && isTaggableNode(elem) ? elem : em.getSelected(); |
|
|
!isElement(elem) && isTaggableNode(elem) ? elem : em.getSelected(); |
|
|
const resizable = model.get('resizable'); |
|
|
const resizable = model && model.get('resizable'); |
|
|
const el = isElement(elem) ? elem : model.getEl(); |
|
|
|
|
|
let options = {}; |
|
|
let options = {}; |
|
|
let modelToStyle; |
|
|
let modelToStyle; |
|
|
|
|
|
|
|
|
@ -441,6 +441,7 @@ export default { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
if (editor && resizable) { |
|
|
if (editor && resizable) { |
|
|
|
|
|
const el = isElement(elem) ? elem : model.getEl(); |
|
|
options = { |
|
|
options = { |
|
|
// Here the resizer is updated with the current element height and width
|
|
|
// Here the resizer is updated with the current element height and width
|
|
|
onStart(e, opts = {}) { |
|
|
onStart(e, opts = {}) { |
|
|
|