merging read and write quill engine

This commit is contained in:
franzz committed 2018-11-22 21:22:41 +01:00
1 parent bcdcf0d2f0
commit 3a53121fe2
12 files changed
+368 -341

No files matched your search

+4 -15
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) {