mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-27 05:01:57 +00:00
working on template action...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1a0e7b9d69
commit
7d45f89dfe
@ -342,10 +342,21 @@ var templates = {
|
|||||||
return header },
|
return header },
|
||||||
// XXX focus button...
|
// XXX focus button...
|
||||||
__focusin__: function(evt, editor, elem){
|
__focusin__: function(evt, editor, elem){
|
||||||
|
//var node = editor.get(elem)
|
||||||
|
//node.querySelector('button').focus()
|
||||||
},
|
},
|
||||||
// XXX handle button???
|
// XXX restrict this to the button???
|
||||||
__click__: function(evt, editor, elem){
|
__click__: function(evt, editor, elem){
|
||||||
},
|
if(evt.target.tagName == 'BUTTON'){
|
||||||
|
//var node = editor.get(elem)
|
||||||
|
//
|
||||||
|
// XXX get the template data...
|
||||||
|
var data = {}
|
||||||
|
var direction = 'next'
|
||||||
|
|
||||||
|
editor.focus(elem)
|
||||||
|
editor.edit(
|
||||||
|
editor.Block(data, direction)) } },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user