diff --git a/experiments/outline-editor/editor.js b/experiments/outline-editor/editor.js index 31ff69b..17204d8 100755 --- a/experiments/outline-editor/editor.js +++ b/experiments/outline-editor/editor.js @@ -1532,6 +1532,7 @@ var Outline = { // NOTE: we are ignoring the .collapsed attr here parsed = this.__code2html__(data.text, {...data}) html.innerHTML = + //(parsed.text == '' || parsed.text.endsWith('')) ? parsed.text == '' ? parsed.text // NOTE: adding a space here is done to prevent the browser @@ -1545,6 +1546,7 @@ var Outline = { delete parsed.style } else { html.innerHTML = + //(data.text == '' || data.text.endsWith('')) ? data.text == '' ? data.text // NOTE: adding a space here is done to prevent the browser diff --git a/experiments/outline-editor/index.html b/experiments/outline-editor/index.html index fc2f8e8..c6c039a 100755 --- a/experiments/outline-editor/index.html +++ b/experiments/outline-editor/index.html @@ -60,6 +60,7 @@ var setup = function(){ ``` - _this seems to be because of a stray `\n` after re-render + `white-space: ...` in the `.view` element..._ _...this is logical as we do not render code on load and to on after edit_ + - narrowed the issue down to `.update(..)` and adding a ' ' to the text... - ways to fix: - semi-active (current): - active mode currently disabled (see: `UPDATE_CODE_SIZE`)