Menu โ–พ โ–ด

Home

neikiri
Neiki's Editor

Neiki's Editor Documentation

JavaScript PHP HTML5 CSS
License Version

Lightweight WYSIWYG Rich Text Editor
Easy to integrate, fully customizable, zero dependencies.


๐Ÿ‘‹ Welcome

Welcome to the official Neiki's Editor documentation. This wiki covers everything from a 2-minute quick start to advanced plugin development, full API reference, and framework integrations.

[!TIP]
New here? Jump straight to ๐Ÿš€ Getting Started โ€” you'll have a working editor on your page in under 2 minutes.


๐Ÿ“š Documentation Pages

๐ŸŸฆ Start Here

๐Ÿš€ Getting Started
Install, initialize, first steps

โš™๏ธ Configuration
All options with examples

๐Ÿ”ง Toolbar Reference
Every toolbar button explained

๐ŸŸฉ Build & Extend

๐Ÿ”Œ Plugin API
Create custom toolbar extensions

๐Ÿ”— Integration Guide
PHP, Vue, React, Laravel

๐Ÿ“‹ API Reference
All methods & callbacks

๐ŸŸจ Deep Dives

๐Ÿงฉ Advanced Features
Tables, images, video, i18n

๐ŸŽจ Themes & Styling
Theming, CSS customization

๐Ÿ”’ Security
Sanitization, XSS protection

๐ŸŸฅ Project

๐Ÿ“‹ Changelog
Version history & release notes


โšก 30-Second Quick Start

<!-- 1. Include (CSS auto-bundled) -->
<script src="https://cdn.neikiri.dev/neiki-editor/neiki-editor.min.js"></script>

<!-- 2. Add a textarea -->
<textarea id="editor"></textarea>

<!-- 3. Initialize -->
<script>
  const editor = new NeikiEditor('#editor');
</script>

[!NOTE]
Zero config required. The <textarea> is replaced by a full-featured WYSIWYG editor automatically.


โœจ Feature Highlights

โœ๏ธ Rich Text

  • Bold, italic, underline, strikethrough
  • Headings H1โ€“H6, font size widget, font family
  • Text & background color pickers (palette + hex)
  • Subscript, superscript, inline code, code blocks
  • Remove formatting

๐Ÿ“Š Content Blocks

  • Tables โ€” context menu, column resize, merge/split cells
  • Images โ€” URL, file upload, drag & drop, clipboard paste, resize handles
  • Video โ€” URL or file upload with videoUploadHandler
  • Block drag & drop reordering with grip handles
  • Blockquotes, horizontal rules, lists

๐ŸŽจ UI & Themes

  • 4 built-in themes: Light, Dark, Blue, Dark Blue
  • Floating toolbar on text selection
  • Fullscreen editing mode
  • Status bar (word count, character count, block type)
  • Autosave with localStorage

๐Ÿ”Œ Developer

  • Zero dependencies โ€” single file drop-in
  • Plugin API for custom toolbar buttons
  • PHP integration helper with sanitization
  • Vue 2/3 & React compatible
  • 8 built-in UI languages (en, cs, zh, es, de, fr, pt, ja)

โŒจ๏ธ Keyboard Shortcuts

Shortcut Action
Ctrl+B Bold
Ctrl+I Italic
Ctrl+U Underline
Ctrl+K Insert Link
Ctrl+S Save (triggers onSave callback)
Ctrl+Z Undo
Ctrl+Y / Ctrl+Shift+Z Redo
Tab / Shift+Tab Indent / Outdent

๐ŸŒ Browser Support

Browser Supported
Chrome โœ… Latest
Firefox โœ… Latest
Safari โœ… Latest
Edge โœ… Latest
Opera โœ… Latest
Internet Explorer โŒ Not supported

[!IMPORTANT]
Neiki's Editor uses contentEditable and standard DOM APIs. All modern browsers are supported. Internet Explorer is not supported.


๐Ÿ“ Project Structure

neiki-editor/
โ”œโ”€โ”€ dist/
โ”‚   โ”œโ”€โ”€ neiki-editor.min.js     # โ† Use this (minified, CSS bundled)
โ”‚   โ”œโ”€โ”€ neiki-editor.min.css
โ”‚   โ”œโ”€โ”€ neiki-editor.js
โ”‚   โ””โ”€โ”€ neiki-editor.css
โ”œโ”€โ”€ demo/
โ”‚   โ””โ”€โ”€ index.html
โ”œโ”€โ”€ php/
โ”‚   โ””โ”€โ”€ neiki-editor.php        # PHP integration helper
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ CHANGELOG.md
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ package.json

๐Ÿ“„ License

Released under the GNU AGPLv3 License.


Made with โค๏ธ ยท Live Demo ยท GitHub