格式
Quill 支持多种格式,包括 UI 控件和 API 调用。
¥Quill supports a number of formats, both in UI controls and API calls.
默认情况下,Quill 编辑器中所有格式均已启用并允许。它们可以使用 formats 选项进行配置。这与在 工具栏 中添加控件是分开的。例如,你可以配置 Quill,允许将粗体内容粘贴到工具栏中没有粗体按钮的编辑器中。
¥By default, all formats are enabled and allowed in a Quill editor. They can be configured with the formats option. This is separate from adding a control in the Toolbar. For example, you can configure Quill to allow bolded content to be pasted into an editor that has no bold button in the toolbar.
独立
¥Standalone
内联
¥Inline
-
背景颜色 -
background
¥Background Color -
background
-
粗体 -
bold
¥Bold -
bold
-
颜色 -
color
¥Color -
color
-
字体 -
font
¥Font -
font
-
内联代码 -
code
¥Inline Code -
code
-
斜体 -
italic
¥Italic -
italic
-
链接 -
link
¥Link -
link
-
大小 -
size
¥Size -
size
-
删除线 -
strike
¥Strikethrough -
strike
-
上标/下标 -
script
¥Superscript/Subscript -
script
-
下划线 -
underline
¥Underline -
underline
区块
¥Block
-
引用 -
blockquote
¥Blockquote -
blockquote
-
标题 -
header
¥Header -
header
-
缩进 -
indent
¥Indent -
indent
-
列表 -
list
¥List -
list
-
文本对齐方式 -
align
¥Text Alignment -
align
-
文本方向 -
direction
¥Text Direction -
direction
-
代码块 -
code-block
¥Code Block -
code-block
嵌入
¥Embeds