hookehuyr

fix

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