mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-17 08:31:38 +00:00
notes and tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
82e003dbf4
commit
d6e975c86a
@ -357,10 +357,10 @@ var templates = {
|
|||||||
|
|
||||||
// button...
|
// button...
|
||||||
return header },
|
return header },
|
||||||
// XXX focus button...
|
// XXX focus button -- see todo...
|
||||||
__focusin__: function(evt, editor, elem){
|
__focusin__: function(evt, editor, elem){
|
||||||
//var node = editor.get(elem)
|
//elem.classList.contains('block')
|
||||||
//node.querySelector('button').focus()
|
// && elem.querySelector('button').focus()
|
||||||
},
|
},
|
||||||
__click__: function(evt, editor, elem){
|
__click__: function(evt, editor, elem){
|
||||||
e = evt.target
|
e = evt.target
|
||||||
@ -384,7 +384,7 @@ var templates = {
|
|||||||
.slice(1)
|
.slice(1)
|
||||||
.join('\n') }
|
.join('\n') }
|
||||||
|
|
||||||
// XXX handle cursor placement / selection...
|
// XXX handle cursor placement / selection markers...
|
||||||
// XXX
|
// XXX
|
||||||
|
|
||||||
var direction =
|
var direction =
|
||||||
@ -395,7 +395,7 @@ var templates = {
|
|||||||
editor.focus(elem)
|
editor.focus(elem)
|
||||||
editor.edit(
|
editor.edit(
|
||||||
// XXX BUG? currently this only creates a single node,
|
// XXX BUG? currently this only creates a single node,
|
||||||
// should be recursive...
|
// should be recursive, i.e. subtree...
|
||||||
editor.Block(data, direction)) } },
|
editor.Block(data, direction)) } },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -50,6 +50,14 @@ var setup = function(){
|
|||||||
-
|
-
|
||||||
- ## Bugs:
|
- ## Bugs:
|
||||||
focused:: true
|
focused:: true
|
||||||
|
- BUG: need to account for hidden elements when cursoring between elements
|
||||||
|
- to reproduce::
|
||||||
|
- XXX move from/to this element
|
||||||
|
- abcdefghijklmnopqrstuvwxyz
|
||||||
|
- [ ] and to/from this (this produces a small shift compared the the above)
|
||||||
|
- there's a simple and a complex solutions to this:
|
||||||
|
- simple: avoid hiding stuff -- not sure if this is achivable
|
||||||
|
- complex: estimate size of elements, including hidden ones, and account for them
|
||||||
- BUG: to level headings style may not be correct...
|
- BUG: to level headings style may not be correct...
|
||||||
- # H1
|
- # H1
|
||||||
- # H2
|
- # H2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user