對於誰可能有這個問題的人,在BeforeSetContent事件可以被用來獲取inserted表。 [https://www.tinymce.com/docs/advanced/events/#beforesetcontent][1]
tinymce.init({
selector: '.tinymce' ,
theme: 'inlite',
plugins: 'table',
insert_toolbar: 'quicktable',
table_appearance_options: true,
selection_toolbar: 'bold italic underline',
nonbreaking_force_tab: true,
inline: true,
init_instance_callback: function (editor) {
editor.on('BeforeSetContent', function (e) {
if(e.content.indexOf('<td>')){
e.content = e.content.replace(/<td>/, "<td width='200'>");
}
});
}
});