Snapshot on highlight changes

This commit is contained in:
Ian Gulliver
2019-07-12 03:54:03 +00:00
parent b1a90d7905
commit eadc7af135
4 changed files with 4 additions and 1 deletions

View File

@@ -75,6 +75,7 @@ class EditorGroup extends EditorEntryBase {
case ' ':
this.elem_.classList.toggle('highlight');
this.elem_.setAttribute('data-arch-snapshot', '');
this.elem_.setAttribute('data-arch-refresh', '');
e.stopPropagation();
e.preventDefault();

View File

@@ -93,6 +93,7 @@ class EditorLink extends EditorEntryBase {
case ' ':
this.elem_.classList.toggle('highlight');
this.elem_.setAttribute('data-arch-snapshot', '');
this.elem_.setAttribute('data-arch-refresh', '');
e.stopPropagation();
e.preventDefault();

View File

@@ -118,6 +118,7 @@ class EditorNode extends EditorEntryBase {
case ' ':
this.elem_.classList.toggle('highlight');
this.elem_.setAttribute('data-arch-snapshot', '');
this.onInput();
e.stopPropagation();
e.preventDefault();

View File

@@ -13,7 +13,7 @@
--group-background: rgba(255,255,255,0.5);
--node-background: #f8f8f8;
--link-label-background: rgba(240,240,240,0.9);
--input: rgba(0,0,0,0.2);
--input: rgba(0,0,0,0.1);
--input-focus: rgba(255,0,0,0.2);
--line: #000000;
}