From fa5888dffb14e1928e2405ad5cfa4b9ee52ecea7 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 8 Oct 2023 02:57:21 +0300 Subject: [PATCH] added checkboxes... Signed-off-by: Alex A. Naanou --- experiments/outline-editor/editor.js | 2 ++ experiments/outline-editor/index.html | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/experiments/outline-editor/editor.js b/experiments/outline-editor/editor.js index 873d8b3..1d790ab 100755 --- a/experiments/outline-editor/editor.js +++ b/experiments/outline-editor/editor.js @@ -338,6 +338,8 @@ var Outline = { elem.collapsed = value.trim() == 'true' return '' }) // markdown... + .replace(/^TODO\s*(.*)$/, ' $1') + .replace(/^DONE\s*(.*)$/, ' $1') .replace(/^######\s*(.*)$/, style('heading-6')) .replace(/^#####\s*(.*)$/, style('heading-5')) .replace(/^####\s*(.*)$/, style('heading-4')) diff --git a/experiments/outline-editor/index.html b/experiments/outline-editor/index.html index 5e75988..b7373a5 100755 --- a/experiments/outline-editor/index.html +++ b/experiments/outline-editor/index.html @@ -28,7 +28,9 @@ var setup = function(){
- # Outline editor prototype - ## TODO - - BUG: delete in edit mode deletes node... + - BUG: delete in edit mode deletes node + - BUG: multiline blocks do not indent correctly in editor + - make checkboxes clickable - editor: enter on an expanded parent node should create child (currently next sibling) - 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 @@ -69,7 +71,12 @@ var setup = function(){ - a - b - c + - line + - --- - basic inline *bold*, _italic_ and ~striked~ + - To do items + - TODO undone item + - DONE done item - A collapsed:: true - a