mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-19 17:41:38 +00:00
added jszip...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d6663bc4a2
commit
627ae436bc
15
ext-lib/jszip.min.js
vendored
Executable file
15
ext-lib/jszip.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
15
index.html
15
index.html
@ -59,7 +59,7 @@ var update_editor = function(){
|
|||||||
|
|
||||||
$(this)
|
$(this)
|
||||||
.prop('contenteditable', 'true')
|
.prop('contenteditable', 'true')
|
||||||
.html(Wiki.raw)
|
.html(Wiki.raw.replace(/\n/gm, '<br class="tmp-br"/>\n'))
|
||||||
|
|
||||||
//reload()
|
//reload()
|
||||||
})
|
})
|
||||||
@ -67,7 +67,18 @@ var update_editor = function(){
|
|||||||
if($(this).prop('contenteditable') == 'true'){
|
if($(this).prop('contenteditable') == 'true'){
|
||||||
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($('.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()
|
||||||
|
//*/
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// XXX do this live, but on a timeout after user input...
|
// XXX do this live, but on a timeout after user input...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user