From 9caf582088d718a2dbd8daaafc76548f47a69973 Mon Sep 17 00:00:00 2001 From: trendschau Date: Mon, 15 Apr 2024 19:52:19 +0200 Subject: [PATCH] v2.4.1 fix table component --- system/typemill/author/js/vue-blox-components.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/system/typemill/author/js/vue-blox-components.js b/system/typemill/author/js/vue-blox-components.js index 0ddbe7e..da9d58a 100644 --- a/system/typemill/author/js/vue-blox-components.js +++ b/system/typemill/author/js/vue-blox-components.js @@ -760,8 +760,6 @@ bloxeditor.component('table-component', { - {{ cellcontent }} - {{ table }} @@ -793,7 +791,7 @@ bloxeditor.component('table-component', { :contenteditable = "colindex !== 0 ? true : false" @click.prevent = "switchrowbar($event, value)" @blur.prevent = "updatedata($event,colindex,rowindex)" - @paste.prevent = "updatedata($event,colindex,rowindex)" + @paste.prevent = "updatedata($event,colindex,rowindex)" :class = "colindex !== 0 ? 'text-center' : 'font-normal text-stone-500' " class = "p-2 border border-stone-300" >{{ value }} @@ -804,7 +802,7 @@ bloxeditor.component('table-component', { :contenteditable = "colindex !== 0 ? true : false" @click.prevent = "switchrowbar($event, value)" @blur.prevent = "updatedata($event,colindex,rowindex)" - @paste.prevent = "updatedata($event,colindex,rowindex)" + @paste.prevent = "updatedata($event,colindex,rowindex)" :class = "colindex !== 0 ? '' : 'text-center text-stone-500 cursor-pointer hover:bg-stone-200'" class = "p-2 border border-stone-300" > @@ -835,11 +833,6 @@ bloxeditor.component('table-component', { { this.$emit('saveBlockEvent'); }, - checkPaste(event) - { - console.log(event); - return; - }, generateTable(markdown) { var newtable = []; @@ -911,13 +904,11 @@ bloxeditor.component('table-component', { }, switchcolumnbar(event, value) { - return; this.rowbar = false; (this.columnbar == value || value == 0) ? this.columnbar = false : this.columnbar = value; }, switchrowbar(event, value) { - return; this.columnbar = false; (this.rowbar == value || value == 0 || value == 1 )? this.rowbar = false : this.rowbar = value; },