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-01 17:59:12 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
24e9c7cf32ec92f789cdb70aa94492b0cdafe705
24e9c7cf
1 parent
2c95b04b
fix
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
src/components/TEditor/index.vue
src/components/TableField/index.vue
src/components/TEditor/index.vue
View file @
24e9c7c
<!--
* @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());
}
...
...
src/components/TableField/index.vue
View file @
24e9c7c
<!--
* @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 {
...
...
Please
register
or
login
to post a comment