Skip to content

Code

The Code extension allows you to add code to your editor.

Usage

tsx
import { Code } from 'reactjs-tiptap-editor/code'; 

const extensions = [
  ...,
  // Import Extensions Here
  Code 
];

Options

shortcutKeys

Type: string[]
Default: ['mod', 'E']

Keyboard shortcuts for the extension.

Source

SourceDocs

Contributors

Changelog

v0.3.28 on 10/13/2025
20125 - feat: add shortcutKeys override(s) to extensions

Made with ❤️