diff --git a/public/index.html b/public/index.html index a9b105c..23dd340 100644 --- a/public/index.html +++ b/public/index.html @@ -47,6 +47,7 @@
+
@@ -159,11 +160,15 @@ } document.getElementById('expandAll').onclick = function expandAll () { - testEditor.expandAll() + testEditor.expand(() => true) + } + + document.getElementById('expand2').onclick = function expandAll () { + testEditor.expand(path => path.length < 2) } document.getElementById('collapseAll').onclick = function collapseAll () { - testEditor.collapseAll() + testEditor.collapse(() => false) }