Quill中文文档
  • 简介
  • 文档(Document)
    • 快速开始(QuickStart)
    • 下载(Download)
    • 配置项(Configuration)
    • 格式化(Formats)
    • API
      • content
      • formatting
      • selection
      • editor
      • events
      • model
      • extension
    • Delta
    • 模块(Modules)
      • 工具栏(Toolbar)
      • 键盘(Keyboard)
      • 历史(History)
      • 剪贴板(Clipboard)
      • 格式化(Formula)
      • 语法高亮(Syntax Highlighter)
    • 主题(Themes)
  • 指南(Guides)
    • 为什么要用Quill?(Why Quill)
    • 怎么自定义Quill
    • 将Quill添加到你的构建系统
    • 构建自定义模块
    • 通过Parchment克隆Medium
    • 设计Delta的格式
    • 与其他富文本编辑器对比
    • 升级到1.0
  • 其他相关库(Other)
    • Parchment
    • 自定义总结
  • 更新日志
Powered by GitBook
On this page
  • Inline
  • Block
  • Embeds
  1. 文档(Document)

格式化(Formats)

Previous配置项(Configuration)NextAPI

Last updated 5 years ago

Quill支持多种方式格式化,包括UI控件和API调用。

默认情况下,所有的格式都被允许存在于Quill编辑器中,并且可以使用格式选项进行配置。这与在工具栏中添加空间上是分开的。例如:你可以配置Quill允许将带粗体的内容粘贴到工具栏中没有粗体按钮的编辑器中。

Inline

  • Background Color - background

  • Bold - bold

  • Color - color

  • Font - font

  • Inline Code - code

  • Italic - italic

  • Link - link

  • Size - size

  • Strikethrough - strike

  • Superscript/Subscript - script

  • Underline - underline

Block

  • Blockquote - blockquote

  • Header - header

  • Indent - indent

  • List - list

  • Text Alignment - align

  • Text Direction - direction

  • Code Block - code-block

Embeds

  • Formula - formula

  • Image - image

  • Video - video

独立版本