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

@tiptap/extension-document

Package Overview
Dependencies
Maintainers
2
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.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
499K
decreased by-53.91%
Maintainers
2
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 05 May 2021

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