hookehuyr

fix

<!--
* @Date: 2024-07-12 13:28:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-08-01 17:38:43
* @LastEditTime: 2024-08-01 17:54:41
* @FilePath: /data-table/src/components/TEditor/index.vue
* @Description: 文件描述
-->
......@@ -252,6 +252,11 @@ const tinymceOptions = {
}
}
});
//
// editor.on('blur', function (e) {
// console.warn(handleGetContent());
// console.warn(handleSetContent());
// });
},
}
......@@ -309,7 +314,6 @@ const handleGetContent = () => {
};
const onBlur = (e) => {
// console.warn(e);
emits("blur", handleGetContent());
}
......
<!--
* @Date: 2022-08-29 14:31:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-08-01 17:08:10
* @LastEditTime: 2024-08-01 17:57:49
* @FilePath: /data-table/src/components/TableField/index.vue
* @Description: 文件描述
-->
......@@ -91,13 +91,13 @@ const table_html = ref('');
// }
const onBlur = (html) => {
table_html.value = html;
props.item.value = {
key: "table",
key: "table_editor",
filed_name: props.item.key,
value: html,
};
emit("active", props.item.value);
table_html.value = html;
}
const table = `
......@@ -191,6 +191,7 @@ defineExpose({ validTableEditor });
font-size: 0.9rem;
font-weight: bold;
}
padding: 1rem;
}
.tinymce-box {
......