Socket
Socket
Sign inDemoInstall

@tiptap/extension-bold

Package Overview
Dependencies
1
Maintainers
4
Versions
128
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-bold


Version published
Maintainers
4
Install size
25.9 kB
Created

Package description

What is @tiptap/extension-bold?

@tiptap/extension-bold is an extension for the Tiptap editor that allows you to add bold formatting to your text. It provides a simple way to toggle bold styling on and off within the Tiptap rich-text editor.

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

Add Bold Formatting

This code demonstrates how to add the Bold extension to a Tiptap editor instance. The Bold extension is imported and included in the editor's extensions array, enabling bold formatting in the editor.

import { Bold } from '@tiptap/extension-bold';
import { Editor } from '@tiptap/core';

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

Toggle Bold Formatting

This code shows how to programmatically toggle bold formatting on the selected text in the Tiptap editor. The `toggleBold` command is chained with `focus` to ensure the editor is focused before applying the bold formatting.

editor.chain().focus().toggleBold().run();

Other packages similar to @tiptap/extension-bold

Changelog

Source

2.1.13 (2023-11-30)

Bug Fixes

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

Readme

Source

@tiptap/extension-bold

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

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc