From e9d7c3b6c198764ba2d9b1b4874f59609d413d50 Mon Sep 17 00:00:00 2001
From: Paul Schneider
Date: Sun, 22 Oct 2017 13:06:51 +0200
Subject: [PATCH] =?UTF-8?q?ajout=20des=20liens=20vers=20les=20fichiers=20e?=
=?UTF-8?q?nvoy=C3=A9s?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Yavsc/Views/Blogspot/Edit.cshtml | 23 +++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/Yavsc/Views/Blogspot/Edit.cshtml b/Yavsc/Views/Blogspot/Edit.cshtml
index 774bb348..258f5c8d 100644
--- a/Yavsc/Views/Blogspot/Edit.cshtml
+++ b/Yavsc/Views/Blogspot/Edit.cshtml
@@ -43,7 +43,6 @@
var nv = $(this).val();
var tid = $(this).data('from');
$('#'+tid).html(htmlize(nv));
- initQuill();
};
$("#Content").change(onchange);
$("#Title").change(onchange);
@@ -78,7 +77,7 @@
editortitre.on('text-change',function(delta,source){
if (source=='user')
{
- updateMD('Title',$('#titleview').html())
+ updateMD('Title',$('#ql-editor-1').html())
}
});
editorcontenu.on('selection-change', function(range) {
@@ -90,7 +89,7 @@
editorcontenu.on('text-change',function(delta,source){
if (source=='user')
{
- updateMD('Content',$('#contentview').html())
+ updateMD('Content',$('#ql-editor-2').html())
}
});
};
@@ -101,9 +100,21 @@
autoProcessQueue: true,
accept: function(file, done) {
if (file.name == "justinbieber.jpg") {
- done("Naha, you don't.");
+ done("Naha, you don't.")
}
- else { done(); }
+ else { done() }
+ },
+ success: function (file, response, ev) {
+ console.log('response:');
+ console.log(response);
+ for(i=0;i'+file.FileName+'
').appendTo('#ql-editor-2');
+ updateMD('Content',$('#contentview').html())
+ }
},
url: "/api/fs"
};
@@ -156,7 +167,7 @@
-
+