diff --git a/index.html b/index.html
index cfd5af5..6a14dc4 100644
--- a/index.html
+++ b/index.html
@@ -34,10 +34,8 @@
Dot And Box editor
diff --git a/src/dotAndBoxEditor.ts b/src/dotAndBoxEditor.ts
index 51102cc..a773368 100644
--- a/src/dotAndBoxEditor.ts
+++ b/src/dotAndBoxEditor.ts
@@ -224,6 +224,7 @@ class DotAndBoxEditor extends HTMLElement {
experimental
editor
+
@@ -241,6 +242,8 @@ class DotAndBoxEditor extends HTMLElement {
const reformatButton: HTMLElement = this.getControl('#reformat')
reformatButton.onclick = (_: any) => this.reformat()
+ const clearButton: HTMLElement = this.getControl('#clear')
+ clearButton.onclick = (_: any) => this.updateEditorCode('title: new ')
const runCodeButton: HTMLElement = this.getControl('#run-code')
runCodeButton.onclick = (_: any) => this.runCode()