
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
eeed-editor
Advanced tools
eeed-editor 是一个基于 Vue 3 + Tiptap 的极简富文本编辑器,支持:
在你的 Vue 3 项目中使用 pnpm 安装:
pnpm add eeed-editor
或者使用 npm 安装:
npm install eeed-editor
<template>
<eeedEditor :config="defaultConfig" :title="title" :content="content" :onUploadFile="handleUploadFile" :onSave="handleSave" :onChange="handleChange"/>
</template>
<script setup>
import eeedEditor from "eeed-editor";
import "eeed-editor/dist/index.css";
const title = ref("标题") // 编辑器标题
const content = ref("内容"); // 编辑器内容
const defaultConfig = {
mode: "doc",
editable: true, // 设置为false表示只读模式,设置为false之后,doc参数中参数可无需设置
doc: {
page: {
mode: "A4",
style: {
position: "absolute",
backgroundColor: "#f5f5f5",
},
},
headerBar: {
visible: true,
home: {
visible: true,
icon: "back",
path: "/",
},
export: {
visible: true,
},
title: {
visible: true,
},
},
toolBar: {
visible: true,
align: "center",
},
},
} as const;
// 上传文件
const handleUploadFile = (file: File) => {
return new Promise<string>((resolve, reject) => {
console.log("开始上传文件:", file.name);
// 模拟异步上传
setTimeout(() => {
// 假设上传成功
const uploadedUrl = `https://xxxxxxxxxxxxxx.png`;
console.log("上传成功,文件 URL:", uploadedUrl);
resolve(uploadedUrl);
}, 1500);
});
};
// 保存
const handleSave = (title: string, content: string) => {
console.log(title, content);
};
// 内容改变
const handleChange = (htmlContent: string, textContent: string) => {
console.log(htmlContent, textContent);
};
<script>
FAQs
基于Vue3 + Tiptap的极简富文本编辑器
We found that eeed-editor demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.