working on template action...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2025-02-10 06:18:23 +03:00
parent 1a0e7b9d69
commit 7d45f89dfe

View File

@ -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)) } },
} }