fluent_editor_character_map 1.0.0
fluent_editor_character_map: ^1.0.0 copied to clipboard
Character map plugin for FluentEditor — adds a special characters palette dialog with categories and search.
fluent_editor_character_map #
Character map plugin for Fluent Editor.
Adds a special characters palette dialog accessible directly from the editor's toolbar. It allows users to browse, search, and insert a wide variety of symbols.
Features #
- Categorized Symbols: Includes categories like Math, Arrows, Greek, Currency, Punctuation, Emoji, Geometric shapes, Superscript/Subscript, and Latin Extended.
- Search Functionality: Quickly find specific characters by name.
- Toolbar Integration: Automatically registers an "Insert Special Character" menu item in the editor's insert menu.
- Localization: All UI strings are customizable via
CharacterMapLabels. - Undo/Redo Support: Inserted characters automatically register as a grouped action in the editor's undo history.
Installation #
dependencies:
fluent_editor_character_map:
path: ../fluent-editor-character-map # or git URL
Quick Start #
import 'package:fluent_editor/fluent_editor.dart';
import 'package:fluent_editor_character_map/fluent_editor_character_map.dart';
// 1. Create the document
final document = FluentDocument();
// 2. Register the plugin with the editor
FluentEditor(
document: document,
plugins: [
// This automatically adds the menu item to the "Insert" menu in the toolbar
FluentCharacterMapPlugin(),
],
);
Localization #
All labels are customizable via CharacterMapLabels. Default values are in English. Labels can also be inherited automatically from FluentEditorLabels on the core document:
FluentCharacterMapPlugin(
labels: CharacterMapLabels(
menuItemTitle: 'Caratteri Speciali',
dialogTitle: 'Mappa dei Caratteri',
searchHint: 'Cerca un simbolo...',
// ...other localized strings
),
);
License #
MIT — see the LICENSE file.