remirror v1.0.0-next.52 Release Notes

Release Date: 2020-11-06 // over 3 years ago
  • Major Changes

    ๐Ÿฑ bdaa6af7 #767 Thanks @whawker! - ๐ŸŽ‰ New extension @remirror/extension-callout

    ๐Ÿ‘ This extension adds support for a new callout node.

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

    0๏ธโƒฃ 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 extensionconst 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 selectionmanager.store.commands.toggleCallout({ type: 'error' });
    

    caf2588d #766 Thanks @ronnyroeller! - Allow links to be clickable

    0๏ธโƒฃ 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.