makes the height adjustment more clean

(no more sleep(100))
This commit is contained in:
Paul Schneider 2016-10-12 03:52:18 +02:00
commit 310b69a7bd
3 changed files with 40 additions and 39 deletions

View file

@ -126,24 +126,24 @@ WriteLiteral(@">
['clean'] // remove formatting button
];
var quill = new Quill('#bubble-container', {
modules: {
toolbar: toolbarOptions
},
placeholder: 'Composez votre texte ...',
theme: 'snow'
});
$(document).ready(function () {
var quill = new Quill('#bubble-container', {
modules: {
toolbar: toolbarOptions
},
placeholder: 'Composez votre texte ...',
theme: 'snow'
});
function getMD() {
return markdownize($('#bubble-container div.ql-editor').html())
}
quill.on('text-change', function (delta, oldDelta, source)
{
if (source === ""user"") {
invokeCSharpAction(getMD());
}
});
$(document).ready(function () {
function getMD() {
return markdownize($('#bubble-container div.ql-editor').html())
}
quill.on('text-change', function (delta, oldDelta, source) {
if (source === ""user"") {
invokeCSharpAction(getMD());
}
});
// TODO implement a dedicated injection
invokeCSharpAction(getMD());
});