Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-08-07 13:19:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d2ea98fe73ad65ecba1fb362c64b55d6d6d93e53
d2ea98fe
1 parent
db6f3d3b
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/components/TEditor/index.vue
src/components/TEditor/index.vue
View file @
d2ea98f
<!--
* @Date: 2024-07-12 13:28:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-08-07 1
1:40:31
* @LastEditTime: 2024-08-07 1
3: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 &&
...
...
Please
register
or
login
to post a comment