Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@textbus/core
Advanced tools
TextBus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.
TextBus 是一套用于构建富交互的富文本编辑框架。和大多数富文本编辑器不同的是,TextBus 以组件为核心,格式为辅助,并大幅简化了富文本编辑器开发中常见 API,且提供了更高的抽象层,使 TextBus 不仅易于上手,同时还能驱动复杂的富文本应用。
本项目为 TextBus 核心实现,提供了跨平台富文本编辑器的基础架构,包括组件、格式、内容及编辑功能等。
本项目并不能直接创建一个富文本编辑器,还需要实现具体平台的桥接接口才可以真正搭建一个富文本编辑器。幸运的是,TextBus 目前开发了 Browser 模块和 Editor 模块,如果你是 PC 端的用户。可以直接使用以上两个模块启动一个所见即所得的编辑器。
更多文档请参考:中文文档
TextBus 可能通过两种方式引入到你的项目中。
npm install @textbus/core @textbus/browser @textbus/editor
在 DOM 中准备好一个空的标签
<div id="editor"></div>
创建编辑器实例
import '@textbus/editor/bundles/textbus.min.css';
import { createEditor } from '@textbus/editor';
const editor = createEditor(document.getElementById('editor'))
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/path/textbus.min.css">
<script src="/path/textbus.min.js"></script>
<title>TextBus 示例</title>
</head>
<body>
<div id="editor"></div>
<script>
var editor = textbus.createEditor(document.getElementById('editor'))
</script>
</body>
</html>
FAQs
Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.
The npm package @textbus/core receives a total of 344 weekly downloads. As such, @textbus/core popularity was classified as not popular.
We found that @textbus/core 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.