From 6dfd4a308adae712343ce1f6fb4d6fbcd2f95cd5 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 12 Dec 2023 16:43:32 +0300 Subject: [PATCH] more cleanup... Signed-off-by: Alex A. Naanou --- experiments/outline-editor/editor.js | 26 +++++++++++++------------- experiments/outline-editor/index.html | 14 +++++++++----- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/experiments/outline-editor/editor.js b/experiments/outline-editor/editor.js index 8403e87..1b92989 100755 --- a/experiments/outline-editor/editor.js +++ b/experiments/outline-editor/editor.js @@ -256,23 +256,23 @@ var blocks = { return text // markdown... // style: headings... - .replace(/^(?\s+(.*)$/m, this.style(editor, elem, 'quote')) - .replace(/^\s*(?')) } , + .replace(/^\s*(?\s+(.*)$/, this.style(editor, elem, 'quote')) + .replace(/^\s*(?')) } , } @@ -733,7 +733,7 @@ var styling = { .replace(/(\s*)(?$2$3') // elements... - .replace(/(\n|^)(?') + .replace(/(\n|^)(?') // basic styling... .replace(/(?$1') .replace(/(?$1') diff --git a/experiments/outline-editor/index.html b/experiments/outline-editor/index.html index b33d4b5..9019be3 100755 --- a/experiments/outline-editor/index.html +++ b/experiments/outline-editor/index.html @@ -52,11 +52,6 @@ var setup = function(){ - this _seems `to` work_ - `while` _this `does` not_ - _seems to be connected with quoting..._ - - BUG? should the following render to the save view? (currently not) - - text
text - - text -
- text (extra newline rendered) - BUG: mobile browsers behave quite chaotically ignoring parts of the styling... - FF: - zooming on edited field @@ -68,6 +63,15 @@ var setup = function(){ - left side does not need to be as wide - BUG? `.code` is currently over-extended and covers the whole element area (incl. `.children`) - this currently has no side-effects but is not pretty (???) + - DONE BUG? should the following render to the save view? (currently not) + collapsed:: true + - text
text + - text +
+ text (extra newline rendered) + - text + --- + text - DONE BUG: caret positioning broken (ASAP CLEANUP: GETTEXT) collapsed:: true - Strategies to test::