New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@texditor/editor

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@texditor/editor

Texditor is a modern, block-based text editor written in TypeScript. It has a clean architecture and an extensible design that allows users to customize the content blocks

latest
npmnpm
Version
1.1.15
Version published
Maintainers
1
Created
Source

Texditor - Minimalistic Block Editor 🧱✏️

A modern, modular block-based text editor built with TypeScript. Featuring a clean architecture, extensible design, and customizable content blocks.

Beta Version TypeScript

Features ✨

  • 🧩 Modular block system
  • 🎨 Clean, extensible architecture
  • �️ Customizable themes
  • 🛠️ Rich toolset (bold, italic, links, etc.)
  • 📦 Easy to integrate

Quick Start 🚀

Basic Setup

import "@texditor/editor/styles/theme.css"; // Theme variables
import "@texditor/editor/styles/editor.css"; // Core styles
import Texditor from "@texditor/editor";

const editor = new Texditor({
  handle: "texditor" // Target element ID
});
<div class="editor" id="texditor"></div>
Advanced Configuration
import { Code, Files, Gallery, H1, H2, H3, H4, H5, H6, List, OrderedList, Paragraph } from "@texditor/editor/blocks";
import { Undo, Redo } from "@texditor/editor/extensions";

import {
  BoldTool,
  ClearFormatingTool,
  ItalicTool,
  LinkTool,
  SubscriptTool,
  SuperscriptTool
} from "@texditor/editor/tools";

const editor = new Texditor({
  handle: "texditor",
  extensions: [Undo, Redo],
  tools: [
    BoldTool,
    LinkTool
    // Add more tools...
  ],
  blockModels: [
    Paragraph, // Default configuration
    H1.setup({
      // Custom configuration
      placeholder: "Heading 1",
      sanitizerConfig: {
        elements: ["a", "sup", "sub"]
        // Additional sanitizer options...
      }
    })
    // Add more blocks...
  ]
});

Contribution 🤝

We welcome contributions! Please feel free to submit issues or pull requests.

FAQs

Package last updated on 20 Jan 2026

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