tijiao
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user