Skip to content

Getting Started

Welcome to LikhaEditor! This guide will help you get started with the editor.

What is LikhaEditor?

LikhaEditor is a modern, framework-agnostic rich text editor built on top of ProseMirror. It provides a simple API while maintaining powerful extensibility through plugins.

Key Features

  • Framework Agnostic: Works with vanilla HTML, React, Laravel, and Livewire
  • Lightweight: Only 75KB gzipped
  • Customizable Toolbar: Choose which buttons to show
  • Plugin System: 19+ built-in plugins, easy to create custom ones
  • Self-Hosted: No cloud services, complete data privacy
  • TypeScript: Fully typed for excellent developer experience
  • MIT Licensed: Free for commercial use

Installation

Choose your preferred method:

bash
npm install @likhaeditor/likhaeditor

pnpm

bash
pnpm add @likhaeditor/likhaeditor

Yarn

bash
yarn add @likhaeditor/likhaeditor

CDN

html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@likhaeditor/likhaeditor/dist/likha-editor.css">
<script src="https://cdn.jsdelivr.net/npm/@likhaeditor/likhaeditor/dist/likha-editor.umd.js"></script>

Basic Usage

HTML + CDN

html
<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@likhaeditor/likhaeditor/dist/likha-editor.css">
</head>
<body>
  <div id="editor"></div>

  <script src="https://cdn.jsdelivr.net/npm/@likhaeditor/likhaeditor/dist/likha-editor.umd.js"></script>
  <script>
    const { createEditor } = LikhaEditor;
    
    createEditor({
      element: document.getElementById('editor'),
      content: '<p>Hello, Likha!</p>'
    });
  </script>
</body>
</html>

ES Module

javascript
import '@likhaeditor/likhaeditor/dist/likha-editor.css';
import { createEditor } from '@likhaeditor/likhaeditor';

createEditor({
  element: document.getElementById('editor'),
  content: '<p>Hello, Likha!</p>'
});

Next Steps

Need Help?