1.1.11 • Published 5 years ago
yosgo-editor v1.1.11
YOSGO Editor
The editor use React, Typescript, react-quill
Feature
- Store and Generate with HTMLformat
- Insert image Url and upload image to imgur
- Embeded video with full width and 16:9 ratio
- Basic editor function
Get start
Install
styled-components is peerDependencies. If you don't install styled-components yarn add styled-components
first.
yarn add yosgo-editor
Editor props
props | required | type | description |
---|---|---|---|
value | yes | string | 編輯器中的內容,html 的字串內容 |
onChange | yes | function (html: string) => any | 當編輯器改變時取得 html 內容,並執行自訂函式 |
mode | no | string "normal", "simple" | 簡單模式僅支援粗體、文字超連結、圖片、影片。預設為正常模式 |
imgurClientId | no | string | 圖片上傳至指定 imgur application。無此屬性編輯器僅提供貼上圖片網址的功能 |
Viewer props
props | required | type | description |
---|---|---|---|
html | yes | string | 顯示 HTML 內容。透過 Viewer 元件,讓編輯情境與查看情境時的內容樣式保持一致 |
Example
Relative issue tracking
- react-quill build issue solve with "esModuleInterop": true
- react-quill build issue solve with "resolutions": {"@types/quill": "1.3.6" }
Helpful resource
1.1.11
5 years ago
1.1.10
5 years ago
1.1.9
5 years ago
1.1.8
5 years ago
1.1.7
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.31
6 years ago
1.0.30
6 years ago
1.0.29
6 years ago
1.0.28
6 years ago
1.0.27
6 years ago
1.0.26
6 years ago
1.0.25
6 years ago
1.0.24
6 years ago
1.0.23
6 years ago
1.0.22
6 years ago
1.0.21
6 years ago
1.0.20
6 years ago
1.0.19
6 years ago
1.0.18
6 years ago
1.0.17
6 years ago
1.0.16
6 years ago
1.0.15
6 years ago
1.0.14
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago