disabled quick editor for now...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-08-02 02:05:49 +03:00
parent 5a95f8c8ab
commit 1e790df062
2 changed files with 14 additions and 13 deletions

View File

@ -63,6 +63,7 @@ var update_editor = function(){
reload()
})
/*
// live update text...
// XXX is this the right way to go for large documents???
var text = $('.text')
@ -80,19 +81,16 @@ var update_editor = function(){
var to = $(this).attr('saveto') || '.'
console.log('SAVING:', Wiki.get(to).path)
/*Wiki.get(to).raw = clearWikiWords(
$('.text').clone())
.html()
//*/
/*
//Wiki.get(to).raw = clearWikiWords(
// $('.text').clone())
// .html()
// show \n in the inline editor...
Wiki.get(to).raw = clearWikiWords(
$('.text').clone()
.find('.tmp-br')
.remove()
.end())
.html()
//*/
//Wiki.get(to).raw = clearWikiWords(
// $('.text').clone()
// .find('.tmp-br')
// .remove()
// .end())
// .html()
}
})
// XXX do this live, but on a timeout after user input...
@ -102,6 +100,7 @@ var update_editor = function(){
.removeAttr('contenteditable')
reload()
})
//*/
//text.html(Wiki.get(text.attr('saveto')).text)
@ -126,6 +125,7 @@ var update_editor = function(){
//raw.text(Wiki.get(raw.attr('saveto')).raw)
/*
$('include')
.attr('tabindex', 0)
.click(function(){
@ -153,6 +153,7 @@ var update_editor = function(){
.blur(() => {
reload()
})
//*/
}
var go = (path) => {

View File

@ -327,6 +327,7 @@ var macro = {
wikiword: function(context, elem){
return $('<span>')
.html(setWikiWords($(elem).html(), true, this.__include_marker__)) },
// XXX need to remove all on* event handlers...
noscript: function(context, elem){
return $(elem)
// remove script tags...
@ -343,7 +344,6 @@ var macro = {
// XXX .off() will not work here as we need to remove on* handlers...
},
// XXX move this to a plugin...
markdown: function(context, elem){
var converter = new showdown.Converter({