You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
786 B
30 lines
786 B
mdnotes
|
|
======
|
|
|
|
Notes utilisant la syntaxe MarkDown pour être rapide et facile à modifier.
|
|
Idéal pour la prise de notes.
|
|
Création dynamique de pages en créant un lien dans une page.
|
|
|
|
Ranges :
|
|
https://stackoverflow.com/questions/6249095/how-to-set-the-caret-cursor-position-in-a-contenteditable-element-div
|
|
|
|
(?:^|\S): Match start or a non-whitespace
|
|
:: Match a colon
|
|
|: OR
|
|
:: Match a colon
|
|
(?:$|\S): Match end or a non-whitespace
|
|
|
|
Javascript Mutex.mutex()
|
|
|
|
## traiter le copier/coller
|
|
editor.addEventListener("paste", function(e) {
|
|
// cancel paste
|
|
e.preventDefault();
|
|
|
|
// get text representation of clipboard
|
|
var text = (e.originalEvent || e).clipboardData.getData('text/plain');
|
|
|
|
// insert text manually
|
|
document.execCommand("insertHTML", false, text);
|
|
});
|