github remirror/remirror v1.0.0-next.53

3 years ago

Fixes

  • a1d65df6 #775 Thanks @whawker! - Fixes extensions that were erroneously adding extra attributes to the DOM twice.

    Attributes were correctly added using their toDOM handler, but also incorrectly in their raw form.

    Example

    const linkExtension = new LinkExtension({
      extraAttributes: {
        custom: {
          default: 'my default',
          parseDOM: (dom) => dom.getAttribute('data-custom'),
          toDOM: (attrs) => ['data-custom', attrs.custom],
        },
      },
    });

    Resulted in

    <a data-custom="my default" custom="my default" <!-- extra attribute rendered in raw form -->
      href="https://remirror.io" rel="noopener noreferrer nofollow"></a
    >
  • 5fd944c6 #770 Thanks @whawker! - Prevent callouts being merged when removing content in between callout nodes.

Don't miss a new remirror release

NewReleases is sending notifications on new releases.