Ju99ernaut / grapesjs-component-code-editor

Code editor for grapesjs
MIT License
66 stars 21 forks source link

table cell content going to parent on aplly #29

Closed Gabriel5934 closed 2 years ago

Gabriel5934 commented 2 years ago

I have the following code on my editor

<tr id="i2fxz" data-gjs-type="row" draggable="true" data-highlightable="1">
  <td id="im87t" data-gjs-type="cell" draggable="true" data-highlightable="1"class="gjs-selected"> Hello World </td>
</tr>

When I click Aplly with the TD selected, the TD gets deleted and the code goes to the TR

Ju99ernaut commented 2 years ago

Looks like you've selected TR, which is why you get <tr... in the editor. If you have TD selected you should only get <td...