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()
|
reload()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/*
|
||||||
// live update text...
|
// live update text...
|
||||||
// XXX is this the right way to go for large documents???
|
// XXX is this the right way to go for large documents???
|
||||||
var text = $('.text')
|
var text = $('.text')
|
||||||
@ -80,19 +81,16 @@ var update_editor = function(){
|
|||||||
var to = $(this).attr('saveto') || '.'
|
var to = $(this).attr('saveto') || '.'
|
||||||
console.log('SAVING:', Wiki.get(to).path)
|
console.log('SAVING:', Wiki.get(to).path)
|
||||||
|
|
||||||
/*Wiki.get(to).raw = clearWikiWords(
|
//Wiki.get(to).raw = clearWikiWords(
|
||||||
$('.text').clone())
|
// $('.text').clone())
|
||||||
.html()
|
// .html()
|
||||||
//*/
|
|
||||||
/*
|
|
||||||
// show \n in the inline editor...
|
// show \n in the inline editor...
|
||||||
Wiki.get(to).raw = clearWikiWords(
|
//Wiki.get(to).raw = clearWikiWords(
|
||||||
$('.text').clone()
|
// $('.text').clone()
|
||||||
.find('.tmp-br')
|
// .find('.tmp-br')
|
||||||
.remove()
|
// .remove()
|
||||||
.end())
|
// .end())
|
||||||
.html()
|
// .html()
|
||||||
//*/
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// XXX do this live, but on a timeout after user input...
|
// XXX do this live, but on a timeout after user input...
|
||||||
@ -102,6 +100,7 @@ var update_editor = function(){
|
|||||||
.removeAttr('contenteditable')
|
.removeAttr('contenteditable')
|
||||||
reload()
|
reload()
|
||||||
})
|
})
|
||||||
|
//*/
|
||||||
|
|
||||||
//text.html(Wiki.get(text.attr('saveto')).text)
|
//text.html(Wiki.get(text.attr('saveto')).text)
|
||||||
|
|
||||||
@ -126,6 +125,7 @@ var update_editor = function(){
|
|||||||
|
|
||||||
//raw.text(Wiki.get(raw.attr('saveto')).raw)
|
//raw.text(Wiki.get(raw.attr('saveto')).raw)
|
||||||
|
|
||||||
|
/*
|
||||||
$('include')
|
$('include')
|
||||||
.attr('tabindex', 0)
|
.attr('tabindex', 0)
|
||||||
.click(function(){
|
.click(function(){
|
||||||
@ -153,6 +153,7 @@ var update_editor = function(){
|
|||||||
.blur(() => {
|
.blur(() => {
|
||||||
reload()
|
reload()
|
||||||
})
|
})
|
||||||
|
//*/
|
||||||
}
|
}
|
||||||
|
|
||||||
var go = (path) => {
|
var go = (path) => {
|
||||||
|
|||||||
2
wiki.js
2
wiki.js
@ -327,6 +327,7 @@ var macro = {
|
|||||||
wikiword: function(context, elem){
|
wikiword: function(context, elem){
|
||||||
return $('<span>')
|
return $('<span>')
|
||||||
.html(setWikiWords($(elem).html(), true, this.__include_marker__)) },
|
.html(setWikiWords($(elem).html(), true, this.__include_marker__)) },
|
||||||
|
// XXX need to remove all on* event handlers...
|
||||||
noscript: function(context, elem){
|
noscript: function(context, elem){
|
||||||
return $(elem)
|
return $(elem)
|
||||||
// remove script tags...
|
// remove script tags...
|
||||||
@ -343,7 +344,6 @@ var macro = {
|
|||||||
// XXX .off() will not work here as we need to remove on* handlers...
|
// XXX .off() will not work here as we need to remove on* handlers...
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// XXX move this to a plugin...
|
// XXX move this to a plugin...
|
||||||
markdown: function(context, elem){
|
markdown: function(context, elem){
|
||||||
var converter = new showdown.Converter({
|
var converter = new showdown.Converter({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user