JSPM

@tiptap-extend/columns

2.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1643
  • Score
    100M100P100Q117848F
  • License MIT

Package Exports

  • @tiptap-extend/columns
  • @tiptap-extend/columns/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tiptap-extend/columns) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@tiptap-extend/columns

This is a fork and update of https://github.com/topo-io/tiptap-extensions/tree/main/demos/column-extension

Usage

import { Node, Editor } from '@tiptap/core';
import StarterKit from '@tiptap/starter-kit';
import { ColumnsExtension } from '@gocapsule/column-extension';
// don't forget to add styles to see the columns
import '@tiptap-extend/columns/src/lib/index.css';

new Editor({
  element: document.querySelector('.element'),
  extensions: [
    // override Document to allow columns
    StarterKit.configure({ document: false }),
    ColumnsExtension,
  ],
  content: '<p>Hello World!</p>',
});

Development

This library was generated with Nx.

Building

Run nx build columns to build the library.

Running unit tests

Run nx test columns to execute the unit tests via Jest.