diff --git a/experiments/outline-editor/editor.js b/experiments/outline-editor/editor.js index 5673529..f65c171 100755 --- a/experiments/outline-editor/editor.js +++ b/experiments/outline-editor/editor.js @@ -417,7 +417,7 @@ var Outline = { styling, tables, symbols, - syntax, + //syntax, // keep this last... // XXX revise -- should this be external??? @@ -1233,7 +1233,10 @@ var Outline = { if(elem.classList.contains('code')){ var block = elem.parentElement that.update(block, { text: elem.value }) - that.runPlugins('__editedcode__', evt, that, elem) } + // give the browser a chance to update the DOM... + // XXX revise... + setTimeout(function(){ + that.runPlugins('__editedcode__', evt, that, elem) }, 0) } that.runPlugins('__focusout__', evt, that, elem) }) // update .code... diff --git a/experiments/outline-editor/index.html b/experiments/outline-editor/index.html index 727269d..fa86da3 100755 --- a/experiments/outline-editor/index.html +++ b/experiments/outline-editor/index.html @@ -44,9 +44,6 @@ var setup = function(){ - // Seems that I unintentionally implemented quite a chunk of the markdown spec ;) - - ## Bugs: - - BUG: exiting a node via arrow keys does not update status (click works)... - - [_] some [X] text [%] - - _likely need to handle an extra event..._ - BUG: last node seems to get trash tags added to it's end... - - ## ToDo: