This commit is contained in:
2026-01-21 14:34:14 +08:00
parent b983c570ea
commit 5c7fbb76fa
20 changed files with 1729 additions and 1080 deletions

View File

@@ -2055,6 +2055,14 @@ export default {
onAction: () => {
// 插入自定义表格到编辑器中
ed.setContent('');
const customCallback = ed.getParam('clear_custom_action');
if (typeof customCallback === 'function') {
customCallback(ed, vueInstance);
} else {
// 3. 如果没有自定义逻辑,执行默认逻辑
vueInstance.$emit('onClear');
}
}
});