Snapshot on highlight changes
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user