JSPM

@intevation/tiptap-extension-office-paste

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 907
  • Score
    100M100P100Q127787F
  • License MIT

Office paste fix extension for tiptap editor

Package Exports

  • @intevation/tiptap-extension-office-paste
  • @intevation/tiptap-extension-office-paste/dist/index.cjs
  • @intevation/tiptap-extension-office-paste/dist/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 (@intevation/tiptap-extension-office-paste) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Tiptap office paste extension

This extension fixes format of text copied from MS Office and pasted into the Tiptap editor.

Installing

npm i --save @intevation/tiptap-extension-office-paste

Features

  • Fixes lists
    • Convertes mso lists into actual html lists
    • Corrects list levels
    • Parse list type and start
  • Removes bookmark tags
  • Removes <o:p> tags
  • Converts mso styles
  • Removes black text color style

Usage

import OfficePaste from "@intevation/tiptap-extension-office-paste";

const editor = Editor({
    extensions: [
        StarterKit,
        OfficePaste
    ]
});

License

The MIT License (MIT). Please see License File for more information.