### codeBeautifierOptions 代码美化工具选项
| Type | Object |
|---| ---|
| Default | {end_with_newline: true, indent_inner_html: true, extra_liners: "['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'pre', 'ul', 'ol', 'table', 'dl']", brace_style: 'expand', indent_char: '\t', indent_size: 1, wrap_line_length: 0} |
| Plugin | code_beautifier.min.js |
指定代码美化工具选项.
#### 代码参考
~~~
$('.selector').froalaEditor({
codeBeautifierOptions: {
end_with_newline: true,
indent_inner_html: true,
extra_liners: "['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'pre', 'ul', 'ol', 'table', 'dl']",
brace_style: 'expand',
indent_char: ' ',
indent_size: 4,
wrap_line_length: 0
}
});
~~~
- 介绍
- 引用调用
- 选项(Options)
- 字符计数器(CharCounter)
- 代码美化工具(CodeBeautifier)
- 代码视图(CodeView)
- 颜色(Colors)
- 拖动(Draggable)
- 表情(Emoticons)
- 实体符(Entities)
- 文件(File)
- 字体家族(FontFamily)
- 字体大小(FontSize)
- 一般选项(General)
- 图像(Image)
- 图像管理器(ImageManager)
- 内联样式(InlineStyle)
- 语言(Language)
- 线路断路器(LineBreaker)
- 链接(Link)
- 段落格式(ParagraphFormat)
- 快速插入(Quick Insert)
- 保存(Save)
- Table
- Video
- Methods
- Align
- Button
- CharCounter
- Clean
- Code View
- Colors
- Commands
- Core
- Cursor
- Edit
- Emoticons
- Events
- File
- Font Family
- Font Size
- Format
- Fullscreen
- General
- Helpers
- HTML
- Image
- Image Manager
- Inline Style
- Keys
- Language
- Link
- Lists
- Markers
- Node
- Paragraph Format
- Paragraph Style
- Placeholder
- Popups
- Position
- Quote
- Save
- Selection
- Size
- Snapshot
- Table
- Toolbar
- Tooltip
- Undo
- Video