How to use the prosemirror-suggest.suggest function in prosemirror-suggest

To help you get started, we’ve selected a few prosemirror-suggest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ifiokjr / remirror / @remirror / core / src / extension-manager.ts View on Github external
private suggestions() {
    this.checkInitialized();
    const suggestions: Suggester[] = [];

    const extensionSuggesters = this.extensions
      .filter(hasExtensionProperty('suggestions'))
      .filter(extension => !extension.options.exclude.suggestions)
      .map(extensionPropertyMapper('suggestions', this.params));

    extensionSuggesters.forEach(suggester => {
      suggestions.push(...(isArray(suggester) ? suggester : [suggester]));
    });

    return suggest(...suggestions);
  }

prosemirror-suggest

Primitives for building your prosemirror suggestion and autocomplete functionality

MIT
Latest version published 4 months ago

Package Health Score

84 / 100
Full package analysis

Similar packages