kolkov / angular-editor

A simple native WYSIWYG editor component for Angular 6 -14+
https://angular-editor.kolkov.ru
MIT License
671 stars 357 forks source link

adding condition on Table Row <tr> #559

Open Manukhurana97 opened 2 months ago

Manukhurana97 commented 2 months ago

Using Editor Mode, I'm trying to add conditions on the row level inside the table, but when I moved out of the code mode it moved the condition above the table tag.

<div style="position: relative"><br>
<table>
<tbody>
<tr><td>1</td></tr>
#if($key && $key!=null)
<tr><td>2</td></tr>
#elseif($key && $key!=null)
<tr><td>3</td></tr>
#else
<tr><td>4</td></tr>
#end
</tbody>
</table>
</div>

After moving out to code mode.

<div style="position: relative"><br>

#if($key2 &amp;&amp; $key!=null)

#elseif($key &amp;&amp; $key!=null)

#else

#end
<table>
<tbody>
<tr><td>1</td></tr><tr><td>2</td></tr><tr><td>3</td></tr><tr><td>4</td></tr></tbody>
</table>
</div>