File

libs/ngx-editorjs/ngx-editorjs-plugins/src/lib/plugins/link/link.module.ts

Description

A module that provides the default EditorJS <img> block tool. See the GitHub repo for API details

import { NgModule } from '@angular/core';
import { EDITOR_JS_TOOL_INJECTOR, PLUGIN_CONFIG, PluginClasses, PluginTypes } from '../../types/plugins';

import Link from '@editorjs/link';
import { createPluginConfig } from '../../util/plugin';

/**
 * A module that provides the default EditorJS `<img>` block tool.
 * See [the GitHub repo](https://github.com/editor-js/image) for API details
 */
@NgModule({
  providers: [
    {
      provide: EDITOR_JS_TOOL_INJECTOR,
      useValue: Link,
      multi: true
    },
    {
      provide: PLUGIN_CONFIG,
      useValue: {
        key: 'link',
        type: PluginTypes.Block,
        pluginName: 'EditorJS Link'
      },
      multi: true
    }
  ]
})
export class PluginLinkModule {}

result-matching ""

    No results matching ""