Installation
Learn how to install and set up LikhaEditor in your project.
Package Manager
Install via npm, pnpm, or yarn:
bash
npm install @likhaeditor/likhaeditorbash
pnpm add @likhaeditor/likhaeditorbash
yarn add @likhaeditor/likhaeditorCDN
For quick prototyping or simple projects, use the CDN:
html
<!-- CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@likhaeditor/likhaeditor/dist/likha-editor.css">
<!-- JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/@likhaeditor/likhaeditor/dist/likha-editor.umd.js"></script>Then initialize the editor:
html
<div id="editor"></div>
<script>
const editor = LikhaEditor.createEditor({
element: document.getElementById('editor'),
content: '<p>Start writing...</p>'
});
</script>Framework Packages
React
bash
npm install @likhaeditor/reactjsx
import { LikhaEditor } from '@likhaeditor/react';
function MyComponent() {
return <LikhaEditor content="<p>Hello World</p>" />;
}Laravel (Coming Soon)
bash
composer require likhaeditor/laravelLivewire (Coming Soon)
bash
composer require likhaeditor/livewire