Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Jan 29, 2024
1 parent ef8a814 commit 1ac3032
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .factory/index.html.pug
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ block content
| editor.detach();
h4: code editor.get()
p Get current value of the #[code <textarea>] element if not empty, otherwise, return #[code null].
h4: code editor.insert(string, mode = 0, clear = false)
p Insert #[var string] to (replace) the current selection.
h4: code editor.insert(value, mode = 0, clear = false)
p Insert #[var value] to (replace) the current selection.
pre: code
| editor.insert(':)'); // Insert at selection (replace selection)
| editor.insert('<b>', -1); // Insert before selection
Expand Down Expand Up @@ -229,7 +229,7 @@ block content
| console.log(editor.$()); // `{"after":"c","before":"a","end":2,"length":1,"start":1,"value":"b"}`
h3 Static Methods
p Static methods are methods that are directly available on the #[code TextEditor] object.
h4: code TextEditor.esc(string)
h4: code TextEditor.esc(value)
p Escape regular expression’s special characters.
h2 Properties
h3 Instance Properties
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ <h4><code>editor.detach()</code></h4>
<pre><code>editor.detach();</code></pre>
<h4><code>editor.get()</code></h4>
<p>Get current value of the <code>&lt;textarea&gt;</code> element if not empty, otherwise, return <code>null</code>.</p>
<h4><code>editor.insert(string, mode = 0, clear = false)</code></h4>
<p>Insert <var>string</var> to (replace) the current selection.</p>
<h4><code>editor.insert(value, mode = 0, clear = false)</code></h4>
<p>Insert <var>value</var> to (replace) the current selection.</p>
<pre><code>editor.insert(':)'); // Insert at selection (replace selection)
editor.insert('&lt;b&gt;', -1); // Insert before selection
editor.insert('&lt;/b&gt;', +1); // Insert after selection
Expand Down Expand Up @@ -197,7 +197,7 @@ <h4><code>editor.$()</code></h4>
console.log(editor.$()); // `{"after":"c","before":"a","end":2,"length":1,"start":1,"value":"b"}`</code></pre>
<h3>Static Methods</h3>
<p>Static methods are methods that are directly available on the <code>TextEditor</code> object.</p>
<h4><code>TextEditor.esc(string)</code></h4>
<h4><code>TextEditor.esc(value)</code></h4>
<p>Escape regular expression&rsquo;s special characters.</p>
<h2>Properties</h2>
<h3>Instance Properties</h3>
Expand Down

0 comments on commit 1ac3032

Please sign in to comment.