paste_anything_editor 0.4.0
paste_anything_editor: ^0.4.0 copied to clipboard
Rich text editor for Flutter web that pastes and copies Word, Excel, Google Docs, Markdown, HTML, tables, math formulas and images with formatting kept.
0.4.0 #
- The copy-paste logic moved to a new pure Dart package, paste_anything, for teams with their own editor. This package depends on it and re-exports it.
- Every public name now has the
Paeprefix:PaeEditor,PaeEditorController,PaeQuillCodec,PaeMathKeyboard,PaeMathDialog,PaeMathTheme,PaeMathLabels, and so on. The old names still work but are deprecated and will be removed in 1.0. PaeEditorControllerimplementsPaeTargetand pastes throughPaePaster.- Breaking:
insertImagenow takes aPaeImage; the URL variant isinsertImageUrl(url).insertImageBytesis deprecated. - Clipboard helpers are now
PaeClipboard(read,readText,writeHtml,writeText,waitForFocus); HTML cleanup isPaeHtml.normalize. - Pasted HTML is also stripped of event handlers and
javascript:links before conversion. - Repository is now a pub workspace (
packages/).
0.3.0 #
- Math keyboard: the toolbar math button now opens a docked
MathKeyboardat the bottom of the screen. The editor keeps focus, so you can move the cursor and keep tapping symbols or formula templates. Toggle it with the same button or hide it from its header. RichHtmlEditor.mathInputMode:MathInputMode.keyboard(default) orMathInputMode.dialog(previous behavior).MathPanelTheme:keyboardHeight,keyboardMaxWidth,keyboardBorderRadius.MathPanelLabels:toolbarTooltip,keyboardTitle,formulasCategory,openLatexEditor,hideKeyboard.- The package is now declared web-only on pub.dev.
- Simpler README.
0.2.0 #
- Fix: first "paste with formatting" after granting clipboard permission
failed with
NotAllowedError: Document is not focused. HTML, text and images are now read in a single Clipboard API call, and the read is retried once the page regains focus. - New
readClipboardText()andwaitForDocumentFocus();ClipboardSnapshotnow carriestextandisAvailable. - Math dialog theming:
MathPanelTheme(MaterialThemeExtension, app-wide or per use,seedColor/colorScheme, every color, radius, size) andMathPanelLabels(all texts). MathInputDialog.show/MathInputPanel:theme,labels,symbolGroups,templates,showSymbolsTab,showFormulaTab.RichHtmlEditor:mathTheme,mathLabels; formula editing opens the formula tab only.- Fix:
MissingFlutterQuillLocalizationExceptionwhen the app doesn't addFlutterQuillLocalizations.delegate; the editor now provides it (QuillLocalizationsScope). example/is now a standalone Flutter web app (flutter run -d chrome).- Docs: Flutter 3.44 needs
flutter_quill>= 11.6.0.
0.1.0 #
- Initial release.
RichHtmlEditor/RichHtmlEditorController: Quill editor that loads and saves HTML, with copy/paste toolbar.- Rich paste from Word, Excel, Google Docs, web pages, code editors, HTML source and Markdown (colors, fonts, bold/italic/underline/strike, lists, headings, links, tables).
- Tables as editable block embeds.
- Math: Unicode symbol palette, LaTeX formulas rendered as equations, paste
from KaTeX / MathJax / MathML /
$..$text, copy as HTML + LaTeX. - Opt-in image paste (
allowImagePaste) with upload callback ordata:URI fallback; unsupported embeds render a placeholder instead of crashing.
