hookehuyr

fix

1 <!-- 1 <!--
2 * @Date: 2024-07-12 13:28:27 2 * @Date: 2024-07-12 13:28:27
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-08-07 11:40:31 4 + * @LastEditTime: 2024-08-07 13:19:06
5 * @FilePath: /data-table/src/components/TEditor/index.vue 5 * @FilePath: /data-table/src/components/TEditor/index.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
20 <script setup> 20 <script setup>
21 import {computed, reactive, watch, ref, nextTick, onMounted} from "vue"; //全屏 21 import {computed, reactive, watch, ref, nextTick, onMounted} from "vue"; //全屏
22 import $ from "jquery"; 22 import $ from "jquery";
23 +import { wxInfo } from "@/utils/tools";
23 // import tinymce from "tinymce/tinymce"; 24 // import tinymce from "tinymce/tinymce";
24 // import "tinymce/skins/content/default/content.css"; 25 // import "tinymce/skins/content/default/content.css";
25 import Editor from "@tinymce/tinymce-vue"; 26 import Editor from "@tinymce/tinymce-vue";
...@@ -211,7 +212,7 @@ const tinymceOptions = { ...@@ -211,7 +212,7 @@ const tinymceOptions = {
211 // toolbar: 'table', // 工具栏显示 212 // toolbar: 'table', // 工具栏显示
212 toolbar: '', // 工具栏显示 213 toolbar: '', // 工具栏显示
213 table_toolbar: 'tableinsertrowafter', // table_toolbar 配置 214 table_toolbar: 'tableinsertrowafter', // table_toolbar 配置
214 - contextmenu: '', // 右键菜单 215 + contextmenu: 'tableinsertrowafter', // 右键菜单
215 width: $('.table-field-page').width() + 'px', 216 width: $('.table-field-page').width() + 'px',
216 paste_data_images: false, //允许粘贴图像 217 paste_data_images: false, //允许粘贴图像
217 // min_height: 300, 218 // min_height: 300,
...@@ -297,7 +298,6 @@ watch( ...@@ -297,7 +298,6 @@ watch(
297 () => props.readonly, 298 () => props.readonly,
298 (newValue, oldValue) => { 299 (newValue, oldValue) => {
299 nextTick(() => { 300 nextTick(() => {
300 - console.warn(newValue);
301 tinymce.activeEditor.mode.set(newValue ? "readonly" : "design"); 301 tinymce.activeEditor.mode.set(newValue ? "readonly" : "design");
302 let iframeDom = document.querySelector("iframe"); 302 let iframeDom = document.querySelector("iframe");
303 iframeDom && 303 iframeDom &&
......