editor: Insert table (Same as easy-mde)

This commit is contained in:
Eragon 2022-11-28 12:52:13 +01:00
parent cd84ccf4e6
commit b132eed1c7
Signed by: Eragon
GPG Key ID: 087126EBFC725006
1 changed files with 5 additions and 2 deletions

View File

@ -81,12 +81,15 @@
<span class="separator"></span>
<!-- Table, Separators, Images, Link, Upload -->
<button type="button" onclick="editor_btn_type()" title="Tableau">
<!-- I need to find a way to replace the LF with \n -->
<button type="button" onclick="editor_insert_around(event)" title="Tableau" data-after="
| Column 1 | Column 2 | Column 3 |
| -------- | -------- | -------- |
| Text | Text | Text |">
<svg viewBox="0 0 24 24">
<path d="M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z"/>
</svg>
</button>
<!-- I need to find a way to replace this LF with an \n -->
<button type="button" onclick="editor_insert_around(event)" data-after="
---" title="Séparateur">
<svg viewBox="0 0 24 24">