> For the complete documentation index, see [llms.txt](https://kang-bing-kui.gitbook.io/quill/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kang-bing-kui.gitbook.io/quill/wen-dang-document/formats.md).

# 格式化（Formats）

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

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

![](https://3684761590-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lr8WY2R6HM-gecnA7Fi%2F-Lr8WZCRmzneyFaGndoy%2F-Lr8WZzjBWkcWkytJzxH%2Fformats.jpg?generation=1571044086820065\&alt=media)

[独立版本](https://quilljs.com/standalone/full/)

## 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`
