mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-27 05:01:57 +00:00
disabled quick editor for now...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
5a95f8c8ab
commit
1e790df062
25
index.html
25
index.html
@ -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) => {
|
||||
|
||||
2
wiki.js
2
wiki.js
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user