Skip to content

CSNW/tiptap-extension-office-paste

 
 

Repository files navigation

Tiptap office paste extension

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

Installing

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

Features

  • Fixes lists
    • Converts 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 "@csnw/tiptap-extension-office-paste";

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

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 84.0%
  • JavaScript 10.3%
  • HTML 3.2%
  • CSS 2.5%