Installations
npm install @yosgo/editor
Developer Guide
Typescript
Yes
Module System
CommonJS
Score
53.7
Supply Chain
77.1
Quality
79.2
Maintenance
50
Vulnerability
99.3
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (100%)
Developer
yosgo-open-source
Download Statistics
Total Downloads
2,648
Last Day
1
Last Week
11
Last Month
41
Last Year
197
GitHub Statistics
2 Stars
20 Commits
2 Watching
4 Branches
2 Contributors
Bundle Size
21.63 kB
Minified
3.45 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.1.23
Package Id
@yosgo/editor@1.1.23
Unpacked Size
31.08 kB
Size
8.66 kB
File Count
14
Total Downloads
Cumulative downloads
Total Downloads
2,648
Last day
0%
1
Compared to previous day
Last week
0%
11
Compared to previous week
Last month
4,000%
41
Compared to previous month
Last year
-46.6%
197
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Peer Dependencies
3
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) => void | 當編輯器改變時取得 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
Issue | 相關連結 | 狀態 |
---|---|---|
react-quill build issue solve with "esModuleInterop": true | Link | 修正 |
react-quill build issue solve with "resolutions": {"@types/quill": "1.3.6" } | Link | 修正 |
extra lines | Link | 修正 |
BlockEmbed cause copy paste error | Link | 修正 |
Helpful resource
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
Found 0/20 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
11 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g
- Warn: Project is vulnerable to: GHSA-588m-9qg5-35pq
- Warn: Project is vulnerable to: GHSA-4943-9vgg-gr5r
- Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v
- Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx
- Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p
- Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3
Score
1.7
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More