typist

DoistMIT活跃维护

基于 Tiptap 和 ProseMirror 的富文本编辑器,支持 Markdown 与纯文本编辑,为 Doist 旗下产品提供编辑能力,可直接集成到 React 应用中。

The mighty Tiptap-based rich-text editor that powers Doist products.

v17.0.8发布于 2026-11-09 17:36 UTC604star +1 / 7 天16fork同步于 2026-11-10 11:57 UTC

怎么上手

由 README 提炼,执行前请确认
npm install --save @doist/typist
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

基于 Tiptap 的 React 富文本编辑器组件,支持编辑与只读展示,并自带 HTML/Markdown 序列化

基于 Tiptap 和 ProseMirror 的富文本编辑器,支持 Markdown 与纯文本编辑,为 Doist 旗下产品提供编辑能力,可直接集成到 React 应用中。

核心能力

  • 基于 Tiptap 构建的 React 富文本编辑器组件
  • 支持只读模式展示内容
  • 支持纯文本模式
  • 内置 HTML 与 Markdown 序列化器
  • 通过 extensions 传入 RichTextKit 等扩展

容易踩的坑

content、extensions、placeholder 仅在首次挂载时生效,后续变更会被忽略;项目定位服务于 Doist 自身需求,并非通用富文本编辑器

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v17.0.8
  1. v17.0.8最新正式版2026-11-09 · 2026-11-09 17:36 UTC

    17.0.8 (2026-11-09)

    Bug Fixes

    • deps: update dependency turndown to v7.2.5 (#1587) (cb2b967)
  2. v17.0.72026-11-09 · 2026-11-09 10:12 UTC
    查看更新说明

    17.0.7 (2026-11-09)

    Bug Fixes

    • deps: update dependency mdast-util-gfm-table to v2.0.1 (#1575) (3092de7)
  3. v17.0.62026-10-29 · 2026-10-29 20:12 UTC
    查看更新说明

    17.0.6 (2026-10-29)

    Bug Fixes

    • deps: update dependency unist-util-visit to v5.2.0 (#1569) (f213c18)
  4. v17.0.52026-10-09 · 2026-10-09 08:49 UTC
    查看更新说明

    17.0.5 (2026-10-09)

    Bug Fixes

    • preserve selections when extending word ranges (#1538) (7b4ff49)
  5. v17.0.42026-10-02 · 2026-10-02 15:42 UTC
    查看更新说明

    17.0.4 (2026-10-02)

    Bug Fixes

    • deps: update dependency mdast-util-gfm-strikethrough to v2.0.1 (#1530) (38027f5)

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Typist is the mighty Tiptap-based rich-text editor React component that powers Doist products, which can also be used for displaying content in a read-only fashion. Typist also supports a plain-text mode, and comes with HTML/Markdown serializers.

    Note

    This project is not attempting to be an all-purpose rich-text editor. Whilst everyone is welcome to fork or use this package in their own products, development decisions are centered around Doist product requirements.

    GitHub: CI Validation npm Version npm Bundle Size (minified) npm Downloads (monthly)

    semantic-release: Conventional Commits Contributor Covenant License: MIT

    Installation

    npm install --save @doist/typist
    

    Usage

    import { TypistEditor, RichTextKit } from '@doist/typist'
    
    function TypistEditorContainer({ content }) {
        return (
            <TypistEditor
                placeholder="A full rich-text editor, be creative…"
                content={content}
                extensions={[RichTextKit]}
            />
        )
    }
    

    Note

    content, extensions, and placeholder are initialization-only: they're read when the editor first mounts, and later changes to these props are ignored. See the Component Lifecycle documentation for how to handle runtime changes.

    If you're looking for additional documentation, in-depth examples, or a live demo, please check out our Storybook.

    Resources

    A curated list of open-source rich-text editors powered by Tiptap that we can draw inspiration from:

    Contributing

    If you're interested in contributing code and/or documentation, please read our contributing guide.

    License

    The use of this source code is governed by an MIT-style license that can be found in the LICENSE file.