mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-25 12:21:58 +00:00
Compare commits
No commits in common. "97e511ce7ed1d0efc49ea74cbb3572c0b21b1365" and "934cae33f37c975f6c04306e125eab9ec893f742" have entirely different histories.
97e511ce7e
...
934cae33f3
@ -1808,11 +1808,17 @@ var Outline = {
|
||||
&& (res[attr] = true) }
|
||||
return res }, {})),
|
||||
...(deep ?
|
||||
{children: this.data([...elem.lastChild.children])}
|
||||
//{children: this.json(elem)}
|
||||
{children: [...elem.lastChild.children]
|
||||
.map(function(elem){
|
||||
return that.data(elem) })}
|
||||
: {}),
|
||||
} },
|
||||
// Same as .data(..) but by default returns the root nodes.
|
||||
// NOTE: this always returns an array
|
||||
// XXX do we need both this and data???
|
||||
// ...the only differences are:
|
||||
// - the default behavior node vs all
|
||||
// - .json() always returns an array
|
||||
// XXX should this always return a list???
|
||||
json: function(node='all'){
|
||||
return [this.data(...(
|
||||
arguments.length == 0 ?
|
||||
|
||||
@ -141,16 +141,13 @@ var setup = function(){
|
||||
|text|text|text|
|
||||
-
|
||||
- ## ToDo:
|
||||
- Time to think about a standalone client -- at least to edit own notes as a test...
|
||||
- _also this would be a nice opportunity to start the move to a newer electron version_
|
||||
- Might be a good idea to think how to avoid the constant selections on focus...
|
||||
- Focus of elements needs cleanup...
|
||||
- navigation up/down to a root element is a bit jumpy...
|
||||
- add loading spinner -- `.loading` class set on `.load(..)` and unset when done...
|
||||
- DONE set/unset class
|
||||
- add animation
|
||||
- make this extensible from client...
|
||||
- Time to think about a standalone client -- at least to edit own notes as a test...
|
||||
- _also this would be a nice opportunity to start the move to a newer electron version_
|
||||
- Q: Make the heading level depend on its depth??
|
||||
- Might be a good idea to think how to avoid the constant selections on focus...
|
||||
- Q: When moving up/down between nodes do we want to place the caret relative to markdown (current) or to view? (see: `CARET_V_MOVE`)
|
||||
- Q: Should tables be text-based markdown or higher-level?
|
||||
collapsed:: true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user