Browse Source

Up SelectComponent

pull/5337/head
Artur Arseniev 3 years ago
parent
commit
28333cec4b
  1. 4
      src/commands/view/SelectComponent.ts

4
src/commands/view/SelectComponent.ts

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

Loading…
Cancel
Save