Skip to content
neikiri edited this page May 19, 2026 · 22 revisions
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

Clone this wiki locally