|
|
|
|
@ -1,5 +1,4 @@
|
|
|
|
|
cheezenotes
|
|
|
|
|
======
|
|
|
|
|
# cheezenotes
|
|
|
|
|
|
|
|
|
|
Notes utilisant la syntaxe MarkDown pour être rapide et facile à modifier.
|
|
|
|
|
Idéal pour la prise de notes.
|
|
|
|
|
@ -16,14 +15,3 @@ https://stackoverflow.com/questions/6249095/how-to-set-the-caret-cursor-position
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
});
|
|
|
|
|
|