|
|
|
@ -229,7 +229,6 @@ export default { |
|
|
|
*/ |
|
|
|
showElementOffset(el: HTMLElement, pos: any, opts: any = {}) { |
|
|
|
if (!showOffsets) return; |
|
|
|
console.log('showElementOffset'); |
|
|
|
this.editor.runCommand('show-offset', { |
|
|
|
el, |
|
|
|
elPos: pos, |
|
|
|
@ -246,7 +245,6 @@ export default { |
|
|
|
* @param {Object} pos |
|
|
|
*/ |
|
|
|
hideElementOffset(view: any) { |
|
|
|
console.log('hideElementOffset'); |
|
|
|
this.editor.stopCommand('show-offset', { |
|
|
|
view, |
|
|
|
}); |
|
|
|
@ -258,7 +256,6 @@ export default { |
|
|
|
* @param {Object} pos |
|
|
|
*/ |
|
|
|
showFixedElementOffset(el: HTMLElement, pos: any) { |
|
|
|
console.log('showFixedElementOffset'); |
|
|
|
this.editor.runCommand('show-offset', { |
|
|
|
el, |
|
|
|
elPos: pos, |
|
|
|
@ -272,7 +269,6 @@ export default { |
|
|
|
* @param {Object} pos |
|
|
|
*/ |
|
|
|
hideFixedElementOffset() { |
|
|
|
console.log('hideFixedElementOffset'); |
|
|
|
if (this.editor) this.editor.stopCommand('show-offset', { state: 'Fixed' }); |
|
|
|
}, |
|
|
|
|
|
|
|
|