Remirror: [email protected] Release

Release date:
October 14, 2022
Previous version:
[email protected] (released October 11, 2022)
Magnitude:
164 Diff Delta
Contributors:
2 total committers
Data confidence:
Commits:

Top Contributors in [email protected]

remirror-bot
whawker

Directory Browser for [email protected]

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

2022-10-14

Patch Changes

  • The ImageExtension now prefers text content, over images when pasting mixed text and image content.

The behaviour when pasting only an image, or only text remains unchanged.

This situation usually occurs when pasting content from Microsoft Office products, the content available via clipboard data is either:

  1. One large image:
    • Effectively a screenshot of the original content (an image with text in it).
  2. HTML content:
    • Containing text that can be parsed by your chosen extensions.
    • However, the images have file:/// protocol URLs, which cannot be resolved due to browser security restrictions.

Remirror's ImageExtension will now prefer HTML content, when the paste contains mixed content.

This will potentially introduce a breaking change for some. However, we believe the current behaviour to be incorrect so we are viewing this more as a fix, than a breaking change.

This update adds a new option to the ImageExtension preferPastedTextContent which you can set to false to restore the previous behaviour.

preferPastedTextContent

  • If true, this will use the text from the clipboard data, and drop the images (default).
  • If false, the "screenshot" image will be used, and the text will be dropped.

    • Prevent table plugins (such as column resizing) from loading, if the view is not editable
    • Updated dependencies
    • Updated dependencies
  • @remirror/[email protected]

  • @remirror/[email protected]

  • @remirror/[email protected]