npm i omnia-editor
# or
yarn add omnia-editor
<script>
import { OmniaEditor } from "omnia-editor";
</script>
<OmniaEditor />
Initial value of the content.
TipTap instance of the Editor.
Use spellcheck.
Get the document as JSON.
Get the document as HTML.
Get the number of characters for the current document.
Returns true
when Editor is focused.
Returns true
if there is no content.
Removes focus from the editor.
Focus the editor at the given position.
Set the focus to the editor
focus()
Set the cursor to the first position
focus('start')
Set the cursor to the last position
focus('end')
Selects the whole document
focus('all')
Set the cursor to position 10
focus(10)
Undo recent changes.
Reapply reverted changes.
Destroy the editor.
Triggered when the editor is initialized.
Triggered when the editor is focused.
Triggered when the editor looses focus.
Triggered when the editors content changes.
Thanks goes to these wonderful people (emoji key):
AntonyBoucher 💻 |
Torsten Dittmann ⚠️ 💻 |
Dennis Tobar 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!