1.0.5 • Published 3 years ago

visualne-selection-plugin v1.0.5

Weekly downloads
11
License
MIT
Repository
github
Last release
3 years ago

visualne-selection-plugin

VisualNE plugin to select multiple nodes at once.

Capture

Usage

Install

npm i visualne-selection-plugin --save

Basic

import { SelectionPlugin } from 'visualne-selection-plugin'
editor.use<Plugin, SelectionParams>(SelectionPlugin, { enabled: true })

Advanced

export interface SelectionParams {
  /**
   * selection area's className for style
   */
  selectionArea?: {
    className?: string;
  };
  /**
   * selection mode's className for style
   */
  selectionMode?: {
    className?: string;
  };
  /**
   * enabled or disable selection
   * default false
   */
  enabled?: boolean;
  /**
   * mode text
   */
  mode?: [string, string];
}

import SelectionPlugin from 'visualne-selection-plugin'
editor.use(SelectionPlugin, {
  enabled: true,
  selectionMode: {
    className: 'text-weight-light custom-selection-pos'
  },
  mode: [
    'Single selection mode (press ctrl to enter [multiple selection mode])', 
    'Multiple selection mode (release ctrl to enter [single selection mode])'
  ]
})
1.0.5

3 years ago

1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago