soccerloway / quill-better-table

Module for better table in Quill, more useful features are supported.
MIT License
313 stars 120 forks source link

Table in table rendering error #13

Closed ZaynJarvis closed 5 years ago

ZaynJarvis commented 5 years ago

When the HTML to be rendered is a table in the table, it causes error. image

<table border=1>
  <tbody>
    <tr>
      <td>1</td>
      <td>2</td>
      <td><table>
      <tbody>
        <tr>
          <td>3</td>
        </tr>
        <tr>
          <td>3</td>
        </tr>
        <tr>
          <td>3</td>
        </tr>
      </tbody>
    </table></td>
   </tr>
  <tr>
      <td>1</td>
      <td>2</td>
      <td>3</td>
    </tr>
  </tbody>
</table>
soccerloway commented 5 years ago

Can not support nested table structure now. It's really a complex feature and not a universal scene.

soccerloway commented 5 years ago

In my product, I disabled insert table when the cursor inside a table.

soccerloway commented 5 years ago

@ZaynJarvis I will close this issue~ By the way, your avator is so handsome~haha.