Overview
The Special Characters plugin provides access to a comprehensive library of Unicode characters and symbols. Insert mathematical symbols, arrows, currency signs, diacritics, and more from an organized character map.
Features
- ✓ Character map interface
- ✓ Unicode browser
- ✓ Search by name
- ✓ Character categories
- ✓ Favorites support
- ✓ Copy to clipboard
- ✓ Character preview
- ✓ Keyboard shortcuts
Installation
npm install @editora/plugin-special-characters
Basic Usage
import Editora from '@editora/core';
import SpecialCharsPlugin from '@editora/plugin-special-characters';
const editor = new Editora('#editor');
editor.use(SpecialCharsPlugin);
// Open character picker
editor.execCommand('openCharacterPicker');
Character Categories
Browse characters by type:
- Math: Mathematical symbols and operators
- Arrows: Arrow symbols in various directions
- Currency: Currency symbols worldwide
- Diacritics: Accent marks and combining marks
- Punctuation: Special punctuation marks
- Greek: Greek letters and symbols
- Letterlike: Mathematical alphanumeric symbols
Configuration Options
| Option | Type | Description |
|---|---|---|
| showFavorites | boolean | Show favorites tab (default: true) |
| groupByCategory | boolean | Group characters by category (default: true) |
API Methods
- openCharacterPicker(): Open character picker
- insertCharacter(char): Insert specific character
- addFavorite(char): Add character to favorites
- searchCharacters(query): Search characters by name