Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jirkasa committed Nov 8, 2024
1 parent 36522f8 commit 3a35f44
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions documentation/other-components/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

const codeView = new CodeView(document.getElementById("MyCodeView"));

const highlightBox = codeView.addHighlight("1");
const highlightBox = codeView.addHighlight(1);
highlightBox.setRange(4, 6);</code></pre></div><div class="code-example__result-box"><pre id="HighlightBoxExample"><code class="no-highlight">let x = 1;
let y = 2;

Expand All @@ -26,7 +26,7 @@
const codeViewMemento = codeView.createMemento();

// do some changes
codeView.addHighlight("4");
codeView.addHighlight(4);

// apply memento (restore to the saved state of code view)
codeView.applyMemento(codeViewMemento);</code></pre></div><div class="code-example__result-box"><pre id="CodeViewMementoExample"><code class="no-highlight">let x = 1;
Expand Down
Loading

0 comments on commit 3a35f44

Please sign in to comment.