@edifice.io/tiptap-extensions
Version:
Edifice Rich Text Editor Extensions
14 lines (13 loc) • 622 B
TypeScript
/**
* Extends `Paragraph` extension from TipTap.
*
* This extension is used to parse documents in old-format (version 0),
* where text alignments were applied on a <div> wrapping a <span>.
* The new format is a <p> with style attributes.
*
* For example :
* `<div style="text-align: right;"><span style="font-size: 20pt;">A right-aligned text</span></div>`
* is now parsed and rendered as
* `<p style="text-align: right;"><span style="font-size: 20pt;">A right-aligned text</span></p>`
*/
export declare const Paragraph: import('@tiptap/core').Node<import('@tiptap/extension-paragraph').ParagraphOptions, any>;