mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 18:10:09 +00:00
added expand/collapse icon/button...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1934eaf747
commit
5fe9b176b1
@ -609,10 +609,12 @@ var Outline = {
|
|||||||
outline.addEventListener('click',
|
outline.addEventListener('click',
|
||||||
function(evt){
|
function(evt){
|
||||||
var elem = evt.target
|
var elem = evt.target
|
||||||
// expand/collapse...
|
// expand/collapse
|
||||||
// XXX
|
// NOTE: clicking outside the element to the right i.e. on :after/:before
|
||||||
if(elem.getAttribute('collapsed')){
|
if(elem.nodeName == 'DIV'
|
||||||
}
|
&& elem.getAttribute('tabindex')
|
||||||
|
&& evt.clientX > elem.offsetWidth){
|
||||||
|
that.toggleCollapse(elem) }
|
||||||
// todo: toggle checkbox...
|
// todo: toggle checkbox...
|
||||||
if(elem.classList.contains('todo')){
|
if(elem.classList.contains('todo')){
|
||||||
var node = elem.parentElement.parentElement
|
var node = elem.parentElement.parentElement
|
||||||
|
|||||||
@ -35,6 +35,7 @@ var setup = function(){
|
|||||||
- Bonsai
|
- Bonsai
|
||||||
-
|
-
|
||||||
- ## ToDo
|
- ## ToDo
|
||||||
|
- do a better expand/collapse icon on hover
|
||||||
- read-only mode
|
- read-only mode
|
||||||
- editor: bksapce/del at start/end of a block should join it with prev/next
|
- editor: bksapce/del at start/end of a block should join it with prev/next
|
||||||
- editor: pressing enter in text edit mode should split text into two blocks
|
- editor: pressing enter in text edit mode should split text into two blocks
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user