Todo stores editor documents too, so the document, the editor, its view, the format bar, links, the clipboard, scripts and EditorBlocks move, with their strings and tests, to a shared package on the same appflowy_editor fork. What is Learn's alone stays in Learn on top of it, and what the editor took from it directly is inverted: EditorBlocks gains textMarks, formatActions and onEditorClosed, RichContentEditor a wrapEditor, and an InsertableBlock's name takes the BuildContext. Learn's screens use LearnContentEditor and LearnContentView, which add Learn's blocks and the grammar check. Learn behaves as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
10 lines
375 B
Dart
10 lines
375 B
Dart
import 'package:halkyon_editor/halkyon_editor.dart';
|
|
import 'package:halkyon_ui/halkyon_ui.dart';
|
|
import 'package:material_ui/material_ui.dart';
|
|
|
|
/// The texts an app installs for the editor.
|
|
const editorTestDelegates = <LocalizationsDelegate<Object?>>[
|
|
HalkyonEditorLocalizations.delegate,
|
|
HalkyonUiLocalizations.delegate,
|
|
...GlobalMaterialLocalizations.delegates,
|
|
];
|