下載下來后解壓到web靜態文件目錄下
html中引入相關css與js
~~~
<!-- 字體圖標樣式表 -->
<link href="http://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<!-- 編輯器樣式表 -->
<link rel="stylesheet" type="text/css" href="static/wysiwyg-editor/css/froala_editor.pkgd.min.css"/>
<!-- 編輯器腳本 -->
<script src="static/wysiwyg-editor/js/froala_editor.pkgd.min.js"></script>
~~~
以上三條是必須引入的否則會出現問題.
初始化編輯器
~~~
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello</title>
<link href="http://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="static/wysiwyg-editor/css/froala_editor.pkgd.min.css"/>
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<textarea id="edit" name="content" style="width: 100%;"></textarea>
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="static/wysiwyg-editor/js/froala_editor.pkgd.min.js"></script>
<script>
$("#edit").froalaEditor();
</script>
</body>
</html>
~~~

- 介紹
- 引用調用
- 選項(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