TinyMCE:从word粘贴时,表格单元格中没有段落

TinyMCE:从word粘贴时,表格单元格中没有段落,tinymce,tinymce-5,Tinymce,Tinymce 5,当我粘贴从Word复制的表时,我将得到一个表,其中包含影响布局的段落标记。我试图用有效的子选项删除标记,但似乎不起作用 粘贴后我会得到: <table> <tbody> <tr> <td> <p><strong>Content</strong></p> </td> <table> <tbody> <tr> <td> <strong&g

当我粘贴从Word复制的表时,我将得到一个表,其中包含影响布局的段落标记。我试图用有效的子选项删除
标记,但似乎不起作用

粘贴后我会得到:

<table>
<tbody>
<tr>
<td>
<p><strong>Content</strong></p>
</td>
<table>
<tbody>
<tr>
<td>
<strong>Content</strong>
</td>
selector: '#editor',
min_height: 555,
plugins: 'anchor autolink autoresize charmap code directionality fullscreen image imagetools link lists nonbreaking paste searchreplace table visualblocks visualchars',
menubar: false,
toolbar: 'undo redo | cut copy paste pastetext | formatselect | bold italic | alignleft aligncenter alignright | bullist numlist indent outdent | table anchor link image | removeformat charmap visualblocks searchreplace fullscreen code',
block_formats: 'Paragraph=p;Heading 2=h2',
language:  'nl',
statusbar: false,
anchor_top: false,
anchor_bottom: false,
paste_enable_default_filters: true,
paste_word_valid_elements: "p,b,strong,i,em,u,h2,a[href],ol,ul,li,table,tr,td,th,tbody,thead",
paste_retain_style_properties: "",
verify_html: true,
valid_children: "-td[p]",