Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tiptap/extension-document

Package Overview
Dependencies
Maintainers
4
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-document

document extension for tiptap

  • 2.0.0-beta.209
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1M
decreased by-3.07%
Maintainers
4
Weekly downloads
 
Created

What is @tiptap/extension-document?

@tiptap/extension-document is an extension for the Tiptap editor, which is a highly customizable rich-text editor framework for the web. This extension provides the basic document structure for Tiptap, allowing you to define the root node of your editor's document schema.

What are @tiptap/extension-document's main functionalities?

Basic Document Structure

This feature allows you to define the basic structure of your document. The 'content' property specifies that the document can contain one or more block elements.

const Document = Document.extend({
  content: 'block+',
});

Custom Document Structure

This feature allows you to customize the document structure. In this example, the document must start with a heading followed by one or more block elements.

const CustomDocument = Document.extend({
  content: 'heading block+',
});

Other packages similar to @tiptap/extension-document

Keywords

FAQs

Package last updated on 16 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc