Socket
Socket
Sign inDemoInstall

@tiptap/extension-character-count

Package Overview
Dependencies
Maintainers
4
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-character-count

font family extension for tiptap


Version published
Weekly downloads
152K
decreased by-6.32%
Maintainers
4
Weekly downloads
 
Install size
Created

Package description

What is @tiptap/extension-character-count?

@tiptap/extension-character-count is an extension for the Tiptap editor that provides character count functionality. It allows developers to easily track and display the number of characters in the editor, which can be useful for applications that require character limits or want to provide feedback to users on their text input.

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

Basic Character Count

This feature allows you to configure a character count limit for the Tiptap editor. The example sets a limit of 200 characters.

const characterCount = CharacterCount.configure({ limit: 200 });

Display Character Count

This feature demonstrates how to initialize the Tiptap editor with the CharacterCount extension and retrieve the current character count from the editor's content.

const editor = new Editor({ extensions: [CharacterCount], content: '<p>Hello World!</p>' }); const characterCount = editor.storage.characterCount.characters();

Character Count with Warning

This feature configures the character count extension to provide a warning when the character limit is approached. The example sets a limit of 200 characters and enables warning mode.

const characterCount = CharacterCount.configure({ limit: 200, mode: 'warning' });

Other packages similar to @tiptap/extension-character-count

Changelog

Source

2.1.13 (2023-11-30)

Bug Fixes

  • react: fix performance regression because of select/deselect (#4661) (ad7f659)

Readme

Source

@tiptap/extension-character-count

Version Downloads License Sponsor

Introduction

Tiptap is a headless wrapper around ProseMirror – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as New York Times, The Guardian or Atlassian.

Official Documentation

Documentation can be found on the Tiptap website.

License

Tiptap is open sourced software licensed under the MIT license.

Keywords

FAQs

Package last updated on 30 Nov 2023

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc