Remplacer simpleMDE par un éditeur maison #110
|
@ -59,7 +59,7 @@ function editor_insert_around(event)
|
|||
ta.selectionEnd = end;
|
||||
}
|
||||
else {
|
||||
ta.selectionStart = ta.selectionEnd =start + before.length;
|
||||
ta.selectionStart = ta.selectionEnd = start + before.length;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -86,7 +86,9 @@
|
|||
<path d="M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z"/>
|
||||
</svg>
|
||||
</button>
|
||||
<button type="button" onclick="editor_btn_type()" title="Séparateur">
|
||||
<!-- 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">
|
||||
<rect fill-rule="evenodd" height="2" width="16" x="4" y="11"/>
|
||||
</svg>
|
||||
|
|
Loading…
Reference in New Issue