
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
fancy-editor
Advanced tools
基于 vue3 + tiptap2 封装的富文本编辑器,具有以下优势:
chrome 91+ 支持粘贴文件上传yarn add fancy-editor
库内包含两个命名导出的函数,分别是用于创建编辑的编辑器 createEditor 与用于展示的阅读器 createReader
创建阅读器,支持如下参数
el: 编辑器要绑定到的 dom 元素value: 编辑器初始内容
type**: **stringdefault**: **''onlyFull: 是否仅全屏显示
type**: **booleandefault**: **falseto: 全屏显示时依附的容器
type**: **string | HTMLElementdefault: 'body'action: 文件上传地址
type**: **stringdefault**: **''feeds: 提及人员列表,可被 @ 的人
type: string[]default: ["Barney", "Lily", "Marshall", "Robin", "Ted"]beforeUpload: 上传前的处理函数,可用于自定义请求方式
params:
file 待上传的文件
type: Filereturn: 包含请求配置的 AxiosRequestConfig 对象
Promise<AxiosRequestConfig>afterUpload: 上传后的处理函数,用于自定义处理上传结果
params:
response 上传后返回的内容
type: AxiosPromise<any>return: 上传的文件预览地址
Promise<string>beforeDownload: 下载前的处理函数,用于自定义下载地址
params:
filename 文件名
type: stringfileUrl 文件预览地址
type: stringreturn: 文件下载地址
type: stringon: 事件处理对象
change: 内容更新时触发
event params:
content: 编辑器内容focus: 聚焦事件
event params: 无blur: 失焦事件
event params: 无preserve: 保存事件,在编辑器中按下 Ctrl + S 时触发
event params:
content: 编辑器内容创建一个阅读器,支持如下参数
el**: 阅读器要绑定到的 **dom 元素content: 要查看的内容
type**: **stringdefault**: **''包含 ts 类型声明,可给予开发者更好的编辑体验
FAQs
基于 `vue3` + `tiptap2` 封装的富文本编辑器,具有以下优势:
The npm package fancy-editor receives a total of 4 weekly downloads. As such, fancy-editor popularity was classified as not popular.
We found that fancy-editor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.