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
orsuccess
banners to your document.0๏ธโฃ The default callout type is
info
, but this can be changed by using thedefaultType
option ofCalloutExtension
.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 clickable0๏ธโฃ 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