🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@syllepsis/plugin-table

Package Overview
Dependencies
Maintainers
4
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syllepsis/plugin-table

table plugin of syllepsis editor

Source
npmnpm
Version
0.1.55
Version published
Weekly downloads
78
254.55%
Maintainers
4
Weekly downloads
 
Created
Source

@syllepsis/plugin-table

official website

prosemirror-tables combine with syllepsis.

we provide more custom props and context menus to help you edit table more easily.

import { TablePlugin } from '@syllepsis/plugin-table'

new TablePlugin({
    // about resize handler
    columnResize?: {
      handleWidth?: number, // width of indicator bar.(default 5)
      cellMinWidth?: number // min width of cell. (default 56)
    },
    // relative to table
    table: {
      defaultCellWidth?: number    // default width of cell.(default 88)
      useTableHeader?: boolean // whether to use `table_header`
      cellAttributes: IUserAttrsConfig; // extends of attrs
    },
    // toolbar button config of `table`
    button?: {
      row?: number, // number of rows inserted in the indicated area,default 7
      column?: number, // number of column inserted in the indicated area,default 7
      cellWith?: number, // width of cell,default 16
      margin?: number, // margin of cell,default 2
      defaultColor?: string, // default cell background,default #F2F2F2
      activeColor?: string, // default active background,default #B2D1FF
      trigger?: 'hover' | 'click' // trigger method of table
    }
})

Keywords

syllepsis

FAQs

Package last updated on 30 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts