Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@tiptap/extension-text
Advanced tools
@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.
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,
],
});
The prosemirror-schema-basic package provides a basic schema for ProseMirror, which includes nodes for paragraphs, headings, text, and more. It is similar to @tiptap/extension-text in that it provides basic text handling capabilities, but it is more focused on providing a complete schema for a basic editor setup.
Draft.js is a framework for building rich text editors in React. It provides a set of immutable models and helper functions for managing text content. While it offers more advanced text handling and formatting capabilities compared to @tiptap/extension-text, it is specifically designed for use with React.
Quill is a powerful, rich text editor built for the modern web. It provides a wide range of text formatting options and is highly customizable. Compared to @tiptap/extension-text, Quill offers a more comprehensive set of features out of the box, but it is a complete editor rather than an extension.
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.
Documentation can be found on the tiptap website.
tiptap is open sourced software licensed under the MIT license.
FAQs
text extension for tiptap
The npm package @tiptap/extension-text receives a total of 906,643 weekly downloads. As such, @tiptap/extension-text popularity was classified as popular.
We found that @tiptap/extension-text demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.