From bb3ba95ae39b022dfc138f997d7b3e8307f00423 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 1 Nov 2023 02:37:03 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- experiments/outline-editor/editor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/experiments/outline-editor/editor.js b/experiments/outline-editor/editor.js index 65c2415..224538f 100755 --- a/experiments/outline-editor/editor.js +++ b/experiments/outline-editor/editor.js @@ -2311,6 +2311,9 @@ Object.assign( attributeChangedCallback(name, before, after){ if(name == 'local-storage'){ this.__localStorage = after + // XXX setting code here because we will load at .setup(..) + // ...the problem is that if we change the attr + // we need to call .load(..) this.code = localStorage[after] ?? '' } if(name == 'session-storage'){