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.