Remirror: v1.0.0-next.52 Release

Release date:
November 6, 2020
Previous version:
v1.0.0-next.51 (released October 27, 2020)
Magnitude:
916 Diff Delta
Contributors:
3 total committers
Data confidence:
Commits:

Top Contributors in v1.0.0-next.52

whawker
ifiokjr
ronnyroeller

Directory Browser for v1.0.0-next.52

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

Release Notes Published

Major Changes

This extension adds support for a new callout node.

These can be used to add info, warning, error or success banners to your document.

The default callout type is info, but this can be changed by using the defaultType option of CalloutExtension.

  import { RemirrorManager } from 'remirror/core';
  import { CalloutExtension } from 'remirror/extension/callout';
  import { CorePreset } from 'remirror/preset/core';

  // Create the callout extension
  const calloutExtension = new CalloutExtension();
  const corePreset = new CorePreset();

  // Create the Editor Manager with the callout extension passed through.
  const manager = RemirrorManager.create([calloutExtension, corePreset]);

  // Pass the dom element to the editor. If you are using `@remirror/react` or
  // other framework wrappers then this is handled for you.
  const element = document.createElement('div');
  document.body.append(element);

  // Add the view to the editor manager.
  manager.addView(element);

  // Wrap with an error callout at the current selection
  manager.store.commands.toggleCallout({ type: 'error' });

Anchor tags in contenteditable are not clickable by default. To allow users nonetheless to open them, this commit adds an optional clickhandler to open the link.

Patch Changes

  • 3da2b5fd Thanks @ifiokjr! - Fixes #768 error when addYouTubeVideo.isEnabled() is called.