merging read and write quill engine

This commit is contained in:
2018-11-22 21:22:41 +01:00
parent bcdcf0d2f0
commit 3a53121fe2
12 changed files with 368 additions and 341 deletions

View File

@@ -1,19 +1,8 @@
<div id="read">
<div class="header date"></div>
<div class="body"></div>
</div>
<div id="read"></div>
<script type="text/javascript">
oMyThoughts.pageInit = function(asHash, bFirstPage)
{
Tools.ajax(
'load',
function(asData){
var $Read = $('#read');
$Read.find('.header').append('Thoughts on '+asData.created_f);
$Read.find('.body').html(Tools.quill2Html(asData.ops));
},
{id: asHash.items[0]},
);
oMyThoughts.pageInit = function(asHash, bFirstPage) {
oEditor = new Editor('#read', true);
oEditor.open(asHash.items[0]);
}
oMyThoughts.onSamePageMove = function(asHash) {