Skip to main content

paste_anything_editor 0.4.0 copy "paste_anything_editor: ^0.4.0" to clipboard
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 Pae prefix: 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.
  • PaeEditorController implements PaeTarget and pastes through PaePaster.
  • Breaking: insertImage now takes a PaeImage; the URL variant is insertImageUrl(url). insertImageBytes is deprecated.
  • Clipboard helpers are now PaeClipboard (read, readText, writeHtml, writeText, waitForFocus); HTML cleanup is PaeHtml.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 MathKeyboard at 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) or MathInputMode.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() and waitForDocumentFocus(); ClipboardSnapshot now carries text and isAvailable.
  • Math dialog theming: MathPanelTheme (Material ThemeExtension, app-wide or per use, seedColor / colorScheme, every color, radius, size) and MathPanelLabels (all texts).
  • MathInputDialog.show / MathInputPanel: theme, labels, symbolGroups, templates, showSymbolsTab, showFormulaTab.
  • RichHtmlEditor: mathTheme, mathLabels; formula editing opens the formula tab only.
  • Fix: MissingFlutterQuillLocalizationException when the app doesn't add FlutterQuillLocalizations.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 or data: URI fallback; unsupported embeds render a placeholder instead of crashing.
0
likes
90
points
182
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Rich text editor for Flutter web that pastes and copies Word, Excel, Google Docs, Markdown, HTML, tables, math formulas and images with formatting kept.

Repository (GitHub)
View/report issues

Topics

#editor #clipboard #html #quill #math

License

MIT (license)

Dependencies

flutter, flutter_math_fork, flutter_quill, flutter_quill_delta_from_html, flutter_widget_from_html_core, html, paste_anything, vsc_quill_delta_to_html

More

Packages that depend on paste_anything_editor