|
@@ -815,11 +815,12 @@ export class TextEditor {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- this.container.append(this.outerLine)
|
|
|
|
-
|
|
|
|
this.textContainer.removeEventListener(this.mousemove, this.onMousemove)
|
|
this.textContainer.removeEventListener(this.mousemove, this.onMousemove)
|
|
|
|
|
|
- onClickOutsideUp([this.textContainer, this.outerLine, document.querySelector('.editor-panel'), document.getElementById('propertyPanelButton')], this.handleOutside.bind(this))
|
|
|
|
|
|
+ if (!this.hidden) {
|
|
|
|
+ this.container.append(this.outerLine)
|
|
|
|
+ onClickOutsideUp([this.textContainer, this.outerLine, document.querySelector('.editor-panel'), document.getElementById('propertyPanelButton')], this.handleOutside.bind(this))
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
this.textarea.removeEventListener('blur', this.onBlur)
|
|
this.textarea.removeEventListener('blur', this.onBlur)
|
|
@@ -1690,6 +1691,9 @@ export class TextEditor {
|
|
if (type === 'image') {
|
|
if (type === 'image') {
|
|
this.hidden = true
|
|
this.hidden = true
|
|
this.frameContainer && (this.frameContainer.style.display = 'none')
|
|
this.frameContainer && (this.frameContainer.style.display = 'none')
|
|
|
|
+ if (this.state === 1) {
|
|
|
|
+ this.handleOutside()
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
this.hidden = false
|
|
this.hidden = false
|
|
this.frameContainer && (this.frameContainer.style.display = 'block')
|
|
this.frameContainer && (this.frameContainer.style.display = 'block')
|