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

@tiptap/extension-text

Package Overview
Dependencies
Maintainers
5
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-text

text extension for tiptap

  • 2.10.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2M
increased by3.32%
Maintainers
5
Weekly downloads
 
Created

What is @tiptap/extension-text?

@tiptap/extension-text is an extension for the Tiptap editor, which is a headless, framework-agnostic text editor built on ProseMirror. This extension provides basic text handling capabilities, allowing you to manage and manipulate text content within the Tiptap editor.

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

Basic Text Handling

This feature allows you to add basic text handling capabilities to your Tiptap editor instance. By including the Text extension, you can manage plain text content within the editor.

import { Text } from '@tiptap/extension-text';

const editor = new Editor({
  extensions: [
    Text,
  ],
});

Custom Text Configuration

This feature allows you to extend the default Text extension to include custom attributes or configurations. In this example, a custom attribute is added to the Text extension.

import { Text } from '@tiptap/extension-text';

const CustomText = Text.extend({
  addAttributes() {
    return {
      customAttribute: {
        default: null,
      },
    };
  },
});

const editor = new Editor({
  extensions: [
    CustomText,
  ],
});

Other packages similar to @tiptap/extension-text

Keywords

FAQs

Package last updated on 26 Nov 2024

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