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

@tiptap/extension-italic

Package Overview
Dependencies
Maintainers
5
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-italic

italic extension for tiptap

  • 2.10.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1M
decreased by-3.58%
Maintainers
5
Weekly downloads
 
Created

What is @tiptap/extension-italic?

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

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

Add Italic Formatting

This feature allows you to add italic formatting to your Tiptap editor. By including the Italic extension in the editor's configuration, you enable the ability to toggle italic styling on selected text.

import { Italic } from '@tiptap/extension-italic';

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

Toggle Italic Command

This command allows you to programmatically toggle italic formatting on the selected text within the editor. It is useful for creating custom toolbar buttons or keyboard shortcuts.

editor.commands.toggleItalic();

Italic Mark Schema

This feature allows you to customize the HTML attributes of the italic mark. For example, you can add a custom CSS class to the italic text.

const italicMark = Italic.configure({
  HTMLAttributes: {
    class: 'custom-italic',
  },
});

Other packages similar to @tiptap/extension-italic

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