mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 01:50:07 +00:00
tuning...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
69701f0697
commit
66e0f112fd
@ -1744,18 +1744,21 @@ var Outline = {
|
||||
var elem = evt.target
|
||||
if(that.runPlugins('__keydown__', evt, that, evt.target) !== true){
|
||||
return }
|
||||
// update element state...
|
||||
if(elem.classList.contains('code')){
|
||||
setTimeout(function(){
|
||||
that.update(elem.parentElement)
|
||||
elem.updateSize() }, 0) }
|
||||
// handle keyboard...
|
||||
evt.key in that.keyboard
|
||||
&& that.keyboard[evt.key].call(that, evt) })
|
||||
// update code block...
|
||||
outline.addEventListener('keyup',
|
||||
function(evt){
|
||||
that.runPlugins('__keyup__', evt, that, evt.target) })
|
||||
var elem = evt.target
|
||||
// update element state...
|
||||
if(elem.classList.contains('code')){
|
||||
// NOTE: for some reason setting the timeout here to 0
|
||||
// makes FF sometimes not see the updated text...
|
||||
setTimeout(function(){
|
||||
that.update(elem.parentElement)
|
||||
elem.updateSize() }, 0) }
|
||||
that.runPlugins('__keyup__', evt, that, elem) })
|
||||
|
||||
// toggle view/code of nodes...
|
||||
outline.addEventListener('focusin',
|
||||
|
||||
@ -46,7 +46,6 @@ var setup = function(){
|
||||
-
|
||||
- ## Bugs:
|
||||
focused:: true
|
||||
- BUG: editor: FF seems to update the style every other key press -- should be live...
|
||||
- BUG: mobile browsers behave quite chaotically ignoring parts of the styling...
|
||||
-
|
||||
- ## ToDo:
|
||||
@ -109,6 +108,7 @@ var setup = function(){
|
||||
block text
|
||||
- NOTE: this is only a problem if making list-items manually -- disable???
|
||||
- empty item height is a bit off...
|
||||
- search?
|
||||
- DONE over-travel pause -- when going fast over start/end stop...
|
||||
- DONE focus:
|
||||
collapsed:: true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user