1.1.11 • Published 7 years ago

yosgo-editor v1.1.11

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

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

propsrequiredtypedescription
valueyesstring編輯器中的內容,html 的字串內容
onChangeyesfunction (html: string) => any當編輯器改變時取得 html 內容,並執行自訂函式
modenostring "normal", "simple"簡單模式僅支援粗體、文字超連結、圖片、影片。預設為正常模式
imgurClientIdnostring圖片上傳至指定 imgur application。無此屬性編輯器僅提供貼上圖片網址的功能

Viewer props

propsrequiredtypedescription
htmlyesstring顯示 HTML 內容。透過 Viewer 元件,讓編輯情境與查看情境時的內容樣式保持一致

Example

Example on CodeSandBox

Relative issue tracking

Helpful resource

1.1.11

7 years ago

1.1.10

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.31

7 years ago

1.0.30

7 years ago

1.0.29

7 years ago

1.0.28

7 years ago

1.0.27

7 years ago

1.0.26

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23

7 years ago

1.0.22

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago