merging read and write quill engine
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user