npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

quill-better-table-plus

v0.1.6

Published

Module for better table in Quill, more useful features are supported.

Downloads

1,308

Readme

quill-better-table-plus

中文 | English

Note: This is an enhanced (Plus) version of the quill-better-table npm package. The original package has not been maintained for a long time, and this enhanced version will be maintained and updated by me.

Summary

quill-better-table-plus is an enhanced version of the Quill rich text editor plugin that provides more powerful and flexible table editing features.It enables users to easily create, edit and format tables, as well as perform more complex table operations.

This package is an enhancement based on the latest available version of the original quill-better-table package, adding a number of new features and fixing a number of known issues to ensure that it is suitable for current environments and needs.

requirement

quilljs v2.0.0-dev.3

Online Demo

quill-better-table-plus Codepen Demo

Install

You can install quill-better-table-plus via npm:

npm install quill-better-table-plus

Use

Import Quill and style dependencies


<script src="https://cdnjs.cloudflare.com/ajax/libs/quill/2.0.0-dev.3/quill.min.js" type="text/javascript"></script>

<link href="https://cdnjs.cloudflare.com/ajax/libs/quill/2.0.0-dev.3/quill.snow.min.css" rel="stylesheet">
<link href="https://unpkg.com/[email protected]/dist/quill-better-table-plus.css" rel="stylesheet">

ES6

import QuillBetterTablePlus from 'quill-better-table-plus'

Quill.register({
  'modules/better-table-plus': QuillBetterTablePlus
}, true)

window.onload = () => {
  const quill = new Quill('#editor-wrapper', {
    theme: 'snow',
    modules: {
      table: false,  // disable table module
      'better-table-plus': {
        operationMenu: {
          items: {
            unmergeCells: {
              text: 'Another unmerge cells name'
            }
          }
        }
      },
      keyboard: {
        bindings: QuillBetterTablePlus.keyboardBindings
      }
    }
  })

  document.body.querySelector('#insert-table')
    .onclick = () => {
    let tableModule = quill.getModule('better-table-plus')
    tableModule.insertTable(3, 3)
  }
}

Future Functions

We plan to further enhance quill-better-table-plus by adding the following features in a future release:

  • [ ] Adapts to multiple table formats: Supports a wide range of directly copied and pasted table data with styles and better parsing and rendering.
  • [ ] Expose more api: Provide more api for developers to use in order to quickly apply different features, looks and styles.
  • [ ] Typescript support

We are working hard on these features and will gradually roll them out in future releases. Stay tuned!

If you have any other feature suggestions or ideas, feel free to raise them in the issue, we'd love to hear your feedback and contributions.

Community

Feel free to contribute code and submit issues. If you find any bugs, or have suggestions for improvements, please create an issue or submit a pull request.

Developer note: node version: 12.x, e.g. 12.22.12.

License

MIT License