From d0842fdd9c34a8a6812307f8703ac3910d28506d Mon Sep 17 00:00:00 2001 From: Kagol Date: Fri, 17 Jan 2025 11:53:58 +0800 Subject: [PATCH] docs: modify fluent-editor to tiny-editor (#213) --- .all-contributorsrc | 2 +- .github/ISSUE_TEMPLATE/bug-report.yml | 2 +- .github/ISSUE_TEMPLATE/config.yml | 4 +-- CONTRIBUTING.md | 28 ++++++++--------- CONTRIBUTING.zh-CN.md | 28 ++++++++--------- README.md | 22 +++++++------- README.zh-CN.md | 30 +++++++++---------- package.json | 7 +++-- .../docs/fluent-editor/.vitepress/config.ts | 6 ++-- .../demos/add-toolbar-item.spec.ts | 2 +- .../fluent-editor/demos/basic-usage.spec.ts | 2 +- .../fluent-editor/demos/image-upload.spec.ts | 2 +- .../docs/fluent-editor/docs/demo/table.md | 2 +- packages/docs/fluent-editor/index.md | 2 +- packages/fluent-editor/package.json | 6 ++-- 15 files changed, 73 insertions(+), 72 deletions(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index fd5de6b..b475457 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -67,6 +67,6 @@ "skipCi": true, "repoType": "github", "repoHost": "https://github.com", - "projectName": "fluent-editor", + "projectName": "tiny-editor", "projectOwner": "opentiny" } diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index 646f73a..fa98905 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -8,7 +8,7 @@ body: value: | Please fill out the following carefully in order to better fix the problem. - type: input - id: fluent-editor-version + id: tiny-editor-version attributes: label: Version description: | diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 3dd47e0..5959430 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,5 @@ blank_issues_enabled: true contact_links: - name: Questions or need help - url: https://github.com/opentiny/fluent-editor/discussions - about: Add this WeChat(opentiny-official, note on "fluent-editor"), we will invite you to the WeChat discussion group later. + url: https://github.com/opentiny/tiny-editor/discussions + about: Add this WeChat(opentiny-official, note on "tiny-editor"), we will invite you to the WeChat discussion group later. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 628b449..74ab447 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,14 +2,14 @@ We are delighted that you are interested in contributing to the TinyEditor open-source project. There are many ways to contribute, and you can choose one or more based on your strengths and interests: -- Report [new issues](https://github.com/opentiny/fluent-editor/issues/new?assignees=&labels=%F0%9F%90%9B++bug&projects=&template=bug-report.yml&title=%F0%9F%90%9B+%5BBug%5D%3A+) -- Provide more detailed information for [existing issues](https://github.com/opentiny/fluent-editor/labels/bug), such as additional screenshots, detailed reproduction steps, or providing a minimal reproducible demo link +- Report [new issues](https://github.com/opentiny/tiny-editor/issues/new?assignees=&labels=%F0%9F%90%9B++bug&projects=&template=bug-report.yml&title=%F0%9F%90%9B+%5BBug%5D%3A+) +- Provide more detailed information for [existing issues](https://github.com/opentiny/tiny-editor/labels/bug), such as additional screenshots, detailed reproduction steps, or providing a minimal reproducible demo link - Submit Pull requests to fix typos in the documentation or to make the documentation clearer and more comprehensive - Add the official assistant WeChat: opentiny-official (note: TinyEditor), join the technical discussion group Once you have used TinyEditor rich text and participated in several of the above forms of contributions, and have become familiar with TinyEditor, you can try more challenging tasks, such as: -- Fixing bugs, starting with [good first issue](https://github.com/opentiny/fluent-editor/labels/good%20first%20issue) +- Fixing bugs, starting with [good first issue](https://github.com/opentiny/tiny-editor/labels/good%20first%20issue) - Implementing new features - Improving unit tests - Translating documentation @@ -17,9 +17,9 @@ Once you have used TinyEditor rich text and participated in several of the above ## Submitting Issues -If you encounter problems while using TinyEditor, we welcome you to submit an Issue. Before submitting an Issue, please read the relevant [official documentation](https://opentiny.github.io/fluent-editor) to confirm whether it is a defect or a feature that has not yet been implemented. +If you encounter problems while using TinyEditor, we welcome you to submit an Issue. Before submitting an Issue, please read the relevant [official documentation](https://opentiny.github.io/tiny-editor) to confirm whether it is a defect or a feature that has not yet been implemented. -If it is a defect, create a new Issue using the [Bug report](https://github.com/opentiny/fluent-editor/issues/new?assignees=&labels=%F0%9F%90%9B++bug&projects=&template=bug-report.yml&title=%F0%9F%90%9B+%5BBug%5D%3A+) template. Example title: `After setting and saving the background color of table cells in the table module, the background color is lost when rendering the cells next time`. +If it is a defect, create a new Issue using the [Bug report](https://github.com/opentiny/tiny-editor/issues/new?assignees=&labels=%F0%9F%90%9B++bug&projects=&template=bug-report.yml&title=%F0%9F%90%9B+%5BBug%5D%3A+) template. Example title: `After setting and saving the background color of table cells in the table module, the background color is lost when rendering the cells next time`. The Issue for reporting defects mainly requires the following information: @@ -27,7 +27,7 @@ The Issue for reporting defects mainly requires the following information: - The manifestation of the defect, which can be supplemented with screenshots, and if there is an error, the error message can be pasted - The reproduction steps of the defect, preferably providing a minimal reproducible demo link -If it is a new feature, choose the [Feature request](https://github.com/opentiny/fluent-editor/issues/new?assignees=&labels=%E2%9C%A8+feature&projects=&template=feature-request.yml&title=%E2%9C%A8+%5BFeature%5D%3A+) template. Example title: `I hope to add the functionality of a format painter`. +If it is a new feature, choose the [Feature request](https://github.com/opentiny/tiny-editor/issues/new?assignees=&labels=%E2%9C%A8+feature&projects=&template=feature-request.yml&title=%E2%9C%A8+%5BFeature%5D%3A+) template. Example title: `I hope to add the functionality of a format painter`. The Issue for new features mainly requires the following information: @@ -36,7 +36,7 @@ The Issue for new features mainly requires the following information: ## Submitting PRs -Before submitting a PR, please ensure that the content you submit is in line with the overall planning of TinyEditor. Generally, Issues already marked as [bug](https://github.com/opentiny/fluent-editor/labels/bug) encourage submitting PRs. If you are not sure, you can create a [Discussion](https://github.com/opentiny/fluent-editor/discussions) for discussion. +Before submitting a PR, please ensure that the content you submit is in line with the overall planning of TinyEditor. Generally, Issues already marked as [bug](https://github.com/opentiny/tiny-editor/labels/bug) encourage submitting PRs. If you are not sure, you can create a [Discussion](https://github.com/opentiny/tiny-editor/discussions) for discussion. ### Pull Request Standards @@ -71,20 +71,20 @@ The PR description uses a template and requires filling in the relevant PR infor ### Local Startup Steps -- Click the Fork button at the top right of the [TinyEditor](https://github.com/opentiny/fluent-editor) code repository to Fork the upstream repository to your personal repository +- Click the Fork button at the top right of the [TinyEditor](https://github.com/opentiny/tiny-editor) code repository to Fork the upstream repository to your personal repository - Clone your personal repository to the local - Associate the upstream repository to synchronize the latest code from the upstream repository - Run `pnpm i` in the root directory of TinyEditor to install dependencies - Run `pnpm dev` to start the rich text website -- Open the browser to visit: [http://localhost:5173/fluent-editor/](http://localhost:5173/fluent-editor/) +- Open the browser to visit: [http://localhost:5173/tiny-editor/](http://localhost:5173/tiny-editor/) ```shell # username is the username, please replace it before execution -git clone git@github.com:username/fluent-editor.git -cd fluent-editor +git clone git@github.com:username/tiny-editor.git +cd tiny-editor # Associate the upstream repository -git remote add upstream git@github.com:opentiny/fluent-editor.git +git remote add upstream git@github.com:opentiny/tiny-editor.git # Install dependencies pnpm i @@ -95,13 +95,13 @@ pnpm dev ### Steps for Submitting PRs -- Please ensure that you have completed the steps in the local startup and can access: [http://localhost:5173/fluent-editor/](http://localhost:5173/fluent-editor/) +- Please ensure that you have completed the steps in the local startup and can access: [http://localhost:5173/tiny-editor/](http://localhost:5173/tiny-editor/) - Synchronize the latest code from the upstream repository main branch: git pull upstream main - Create a new branch from the upstream repository main branch `git checkout -b username/feature1 upstream/main`, the branch name is recommended to be `username/feat-xxx` / `username/fix-xxx` - Local coding - Follow the [Commit Message Format](https://www.conventionalcommits.org/zh-hans/v1.0.0/) standard for submission, PRs that do not conform to the submission standard will not be merged - Submit to the remote repository: git push origin branchName -- Open the [Pull requests](https://github.com/opentiny/fluent-editor/pulls) link of the TinyEditor code repository, click the New pull request button to submit PR +- Open the [Pull requests](https://github.com/opentiny/tiny-editor/pulls) link of the TinyEditor code repository, click the New pull request button to submit PR - Supplement the relevant information according to the PR template, including PR checklist, PR type, associated Issue number, whether it is a destructive change - The project Committer conducts Code Review and provides feedback - The PR author adjusts the code according to the feedback, please note that after a branch has initiated a PR, subsequent commits will be synchronized automatically, no need to resubmit PR diff --git a/CONTRIBUTING.zh-CN.md b/CONTRIBUTING.zh-CN.md index 30dc197..c0ea61a 100644 --- a/CONTRIBUTING.zh-CN.md +++ b/CONTRIBUTING.zh-CN.md @@ -2,14 +2,14 @@ 很高兴你有意愿参与 TinyEditor 开源项目的贡献,参与贡献的形式有很多种,你可以根据自己的特长和兴趣选择其中的一个或多个: -- 报告[新缺陷](https://github.com/opentiny/fluent-editor/issues/new?assignees=&labels=%F0%9F%90%9B++bug&projects=&template=bug-report.yml&title=%F0%9F%90%9B+%5BBug%5D%3A+) -- 为[已有缺陷](https://github.com/opentiny/fluent-editor/labels/bug)提供更详细的信息,比如补充截图、提供更详细的复现步骤、提供最小可复现 demo 链接等 +- 报告[新缺陷](https://github.com/opentiny/tiny-editor/issues/new?assignees=&labels=%F0%9F%90%9B++bug&projects=&template=bug-report.yml&title=%F0%9F%90%9B+%5BBug%5D%3A+) +- 为[已有缺陷](https://github.com/opentiny/tiny-editor/labels/bug)提供更详细的信息,比如补充截图、提供更详细的复现步骤、提供最小可复现 demo 链接等 - 提交 Pull requests 修复文档中的错别字或让文档更清晰和完善 - 添加官方小助手微信 opentiny-official(备注:TinyEditor),加入技术交流群参与讨论 当你亲自使用 TinyEditor 富文本,并参与多次以上形式的贡献,对 TinyEditor 逐渐熟悉之后,可以尝试做一些更有挑战的事情,比如: -- 修复缺陷,可以先从 [Good-first issue](https://github.com/opentiny/fluent-editor/labels/good%20first%20issue) 开始 +- 修复缺陷,可以先从 [Good-first issue](https://github.com/opentiny/tiny-editor/labels/good%20first%20issue) 开始 - 实现新特性 - 完善单元测试 - 翻译文档 @@ -17,9 +17,9 @@ ## 提交 Issue -如果你在使用 TinyEditor 富文本过程中遇到问题,欢迎给我们提交 Issue,提交 Issue 之前,请先仔细阅读相关的[官方文档](https://opentiny.github.io/fluent-editor),确认这是一个缺陷还是尚未实现的功能。 +如果你在使用 TinyEditor 富文本过程中遇到问题,欢迎给我们提交 Issue,提交 Issue 之前,请先仔细阅读相关的[官方文档](https://opentiny.github.io/tiny-editor),确认这是一个缺陷还是尚未实现的功能。 -如果是一个缺陷,创建新 Issue 时选择 [Bug report](https://github.com/opentiny/fluent-editor/issues/new?assignees=&labels=%F0%9F%90%9B++bug&projects=&template=bug-report.yml&title=%F0%9F%90%9B+%5BBug%5D%3A+) 模板,标题示例:`在表格模块中,设置单元格背景色并保存之后,下次渲染单元格背景色丢失`。 +如果是一个缺陷,创建新 Issue 时选择 [Bug report](https://github.com/opentiny/tiny-editor/issues/new?assignees=&labels=%F0%9F%90%9B++bug&projects=&template=bug-report.yml&title=%F0%9F%90%9B+%5BBug%5D%3A+) 模板,标题示例:`在表格模块中,设置单元格背景色并保存之后,下次渲染单元格背景色丢失`。 报告缺陷的 Issue 主要需要填写以下信息: @@ -27,7 +27,7 @@ - 缺陷的表现,可截图辅助说明,如果有报错可贴上报错信息 - 缺陷的复现步骤,最好能提供一个最小可复现 demo 链接 -如果是一个新特性,则选择 [Feature request](https://github.com/opentiny/fluent-editor/issues/new?assignees=&labels=%E2%9C%A8+feature&projects=&template=feature-request.yml&title=%E2%9C%A8+%5BFeature%5D%3A+) 模板,标题示例:`希望增加格式刷的功能`。 +如果是一个新特性,则选择 [Feature request](https://github.com/opentiny/tiny-editor/issues/new?assignees=&labels=%E2%9C%A8+feature&projects=&template=feature-request.yml&title=%E2%9C%A8+%5BFeature%5D%3A+) 模板,标题示例:`希望增加格式刷的功能`。 新特性的 Issue 主要需要填写以下信息: @@ -36,7 +36,7 @@ ## 提交 PR -提交 PR 之前,请先确保你提交的内容是符合 TinyEditor 整体规划的,一般已经标记为 [bug](https://github.com/opentiny/fluent-editor/labels/bug) 的 Issue 是鼓励提交 PR 的,如果你不是很确定,可以创建一个 [Discussion](https://github.com/opentiny/fluent-editor/discussions) 进行讨论。 +提交 PR 之前,请先确保你提交的内容是符合 TinyEditor 整体规划的,一般已经标记为 [bug](https://github.com/opentiny/tiny-editor/labels/bug) 的 Issue 是鼓励提交 PR 的,如果你不是很确定,可以创建一个 [Discussion](https://github.com/opentiny/tiny-editor/discussions) 进行讨论。 ### Pull Request 规范 @@ -71,20 +71,20 @@ PR 描述使用了模板,需要按照模板填写 PR 相关信息,主要包 ### 本地启动步骤 -- 点击 [TinyEditor](https://github.com/opentiny/fluent-editor) 代码仓库右上角的 Fork 按钮,将上游仓库 Fork 到个人仓库 +- 点击 [TinyEditor](https://github.com/opentiny/tiny-editor) 代码仓库右上角的 Fork 按钮,将上游仓库 Fork 到个人仓库 - Clone 个人仓库到本地 - 关联上游仓库,方便同步上游仓库最新代码 - 在 TinyEditor 根目录下运行 `pnpm i`,安装依赖 - 运行 `pnpm dev`,启动富文本网站 -- 打开浏览器访问:[http://localhost:5173/fluent-editor/](http://localhost:5173/fluent-editor/) +- 打开浏览器访问:[http://localhost:5173/tiny-editor/](http://localhost:5173/tiny-editor/) ```shell # username 为用户名,执行前请替换 -git clone git@github.com:username/fluent-editor.git -cd fluent-editor +git clone git@github.com:username/tiny-editor.git +cd tiny-editor # 关联上游仓库 -git remote add upstream git@github.com:opentiny/fluent-editor.git +git remote add upstream git@github.com:opentiny/tiny-editor.git # 安装依赖 pnpm i @@ -95,13 +95,13 @@ pnpm dev ### 提交 PR 的步骤 -- 请确保你已经完成本地启动中的步骤,并能正常访问:[http://localhost:5173/fluent-editor/](http://localhost:5173/fluent-editor/) +- 请确保你已经完成本地启动中的步骤,并能正常访问:[http://localhost:5173/tiny-editor/](http://localhost:5173/tiny-editor/) - 同步上游仓库 main 分支最新代码:git pull upstream main - 从上游仓库 main 分支创建新分支 `git checkout -b username/feature1 upstream/main`,分支名字建议为 `username/feat-xxx` / `username/fix-xxx` - 本地编码 - 遵循 [Commit Message Format](https://www.conventionalcommits.org/zh-hans/v1.0.0/) 规范进行提交,不符合提交规范的 PR 将不会被合并 - 提交到远程仓库:git push origin branchName -- 打开 TinyEditor 代码仓库的 [Pull requests](https://github.com/opentiny/fluent-editor/pulls) 链接,点击 New pull request 按钮提交 PR +- 打开 TinyEditor 代码仓库的 [Pull requests](https://github.com/opentiny/tiny-editor/pulls) 链接,点击 New pull request 按钮提交 PR - 按照 PR 模板补充相关信息,包括 PR 自检项、PR 类型、关联的 Issue 编号、是否是破坏性变更 - 项目 Committer 进行 Code Review,并提出意见 - PR 作者根据意见调整代码,请注意一个分支发起了 PR 后,后续的 commit 会自动同步,无需重新提交 PR diff --git a/README.md b/README.md index b058f4a..a3463ae 100644 --- a/README.md +++ b/README.md @@ -46,9 +46,9 @@ Import style: Initialize the TinyEditor editor: ```javascript -import FluentEditor from '@opentiny/fluent-editor' +import TinyEditor from '@opentiny/fluent-editor' -const editor = new FluentEditor('#editor', { +const editor = new TinyEditor('#editor', { theme: 'snow', }) ``` @@ -56,13 +56,13 @@ const editor = new FluentEditor('#editor', { ## Development ```shell -git clone git@github.com:opentiny/fluent-editor.git -cd fluent-editor +git clone git@github.com:opentiny/tiny-editor.git +cd tiny-editor pnpm i pnpm dev ``` -Open your browser and visit: [http://localhost:5173/fluent-editor/](http://localhost:5173/fluent-editor/) +Open your browser and visit: [http://localhost:5173/tiny-editor/](http://localhost:5173/tiny-editor/) ## Contributors ✨ @@ -76,12 +76,12 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d - - - - - - + + + + + +
zzxming
zzxming

💻
Janson1012
Janson1012

💻
Kagol
Kagol

💻
keray
keray

💻
qwangry
qwangry

💻
jany55555
jany55555

💻
zzxming
zzxming

💻
Janson1012
Janson1012

💻
Kagol
Kagol

💻
keray
keray

💻
qwangry
qwangry

💻
jany55555
jany55555

💻
diff --git a/README.zh-CN.md b/README.zh-CN.md index 1557abb..cc24ca1 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -46,9 +46,9 @@ npm i @opentiny/fluent-editor 初始化 TinyEditor 编辑器: ```javascript -import FluentEditor from '@opentiny/fluent-editor' +import TinyEditor from '@opentiny/fluent-editor' -const editor = new FluentEditor('#editor', { +const editor = new TinyEditor('#editor', { theme: 'snow', }) ``` @@ -56,13 +56,13 @@ const editor = new FluentEditor('#editor', { ## 本地开发 ```shell -git clone git@github.com:opentiny/fluent-editor.git -cd fluent-editor +git clone git@github.com:opentiny/tiny-editor.git +cd tiny-editor pnpm i pnpm dev ``` -打开浏览器访问:[http://localhost:5173/fluent-editor/](http://localhost:5173/fluent-editor/) +打开浏览器访问:[http://localhost:5173/tiny-editor/](http://localhost:5173/tiny-editor/) ## ✨ 贡献者 @@ -76,12 +76,12 @@ pnpm dev - - - - - - + + + + + +
zzxming
zzxming

💻
Janson1012
Janson1012

💻
Kagol
Kagol

💻
keray
keray

💻
qwangry
qwangry

💻
jany55555
jany55555

💻
zzxming
zzxming

💻
Janson1012
Janson1012

💻
Kagol
Kagol

💻
keray
keray

💻
qwangry
qwangry

💻
jany55555
jany55555

💻
@@ -95,10 +95,10 @@ pnpm dev 感谢: -- [quill](https://github.com/slab/quill) 项目,它是一款 API 驱动的富文本编辑器,采用模块化架构,可扩展性好,易于使用,支持跨平台,FluentEditor 基于 Quill 扩展和增强了表格、图片、超链接等大量模块和格式。 -- [quill-better-table](https://github.com/soccerloway/quill-better-table) 项目,它增强了 Quill 内置表格模块,增加了丰富的功能,FluentEditor 的表格操作功能基于 quill-better-table。 -- [quill-emoji](https://github.com/contentco/quill-emoji) 项目,它是一个用于表情符号的 Quill 模块,FluentEditor 的插入表情功能基于 quill-emoji。 -- [quill-blot-formatter](https://github.com/Fandom-OSS/quill-blot-formatter) 项目,它是一个用于调整图像和视频大小的 Quill 模块,FluentEditor 的图片缩放功能基于 quill-blot-formatter。 +- [quill](https://github.com/slab/quill) 项目,它是一款 API 驱动的富文本编辑器,采用模块化架构,可扩展性好,易于使用,支持跨平台,TinyEditor 基于 Quill 扩展和增强了表格、图片、超链接等大量模块和格式。 +- [quill-better-table](https://github.com/soccerloway/quill-better-table) 项目,它增强了 Quill 内置表格模块,增加了丰富的功能,TinyEditor 的表格操作功能基于 quill-better-table。 +- [quill-emoji](https://github.com/contentco/quill-emoji) 项目,它是一个用于表情符号的 Quill 模块,TinyEditor 的插入表情功能基于 quill-emoji。 +- [quill-blot-formatter](https://github.com/Fandom-OSS/quill-blot-formatter) 项目,它是一个用于调整图像和视频大小的 Quill 模块,TinyEditor 的图片缩放功能基于 quill-blot-formatter。 ## License diff --git a/package.json b/package.json index 409c3fb..1079693 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,10 @@ "homepage": "", "repository": { "type": "git", - "url": "git@github.com:opentiny/fluent-editor.git" + "url": "git@github.com:opentiny/tiny-editor.git" }, "bugs": { - "url": "https://github.com/opentiny/fluent-editor/issues" + "url": "https://github.com/opentiny/tiny-editor/issues" }, "keywords": [ "editor", @@ -21,7 +21,8 @@ "wysiwyg-editor", "quill", "opentiny", - "fluent-editor" + "fluent-editor", + "tiny-editor" ], "scripts": { "dev": "pnpm -F docs dev", diff --git a/packages/docs/fluent-editor/.vitepress/config.ts b/packages/docs/fluent-editor/.vitepress/config.ts index 3bf12e5..80d9828 100644 --- a/packages/docs/fluent-editor/.vitepress/config.ts +++ b/packages/docs/fluent-editor/.vitepress/config.ts @@ -6,8 +6,8 @@ import { sidebar } from './sidebar' export default defineConfig({ title: 'TinyEditor', titleTemplate: '基于 Quill 2.0 的富文本编辑器', - description: '富文本编辑器, Rich text editor, rich-text-editor, rich-text, wysiwyg, wysiwyg-editor, quill, fluent-editor', - base: '/fluent-editor/', + description: '富文本编辑器, Rich text editor, rich-text-editor, rich-text, wysiwyg, wysiwyg-editor, quill, fluent-editor, tiny-editor', + base: '/tiny-editor/', cleanUrls: true, head: [ ['link', { rel: 'icon', href: 'favicon.ico' }], @@ -35,7 +35,7 @@ export default defineConfig({ }, ], socialLinks: [ - { icon: 'github', link: 'https://github.com/opentiny/fluent-editor/' }, + { icon: 'github', link: 'https://github.com/opentiny/tiny-editor/' }, ], sidebar: { '/docs/': sidebar(), diff --git a/packages/docs/fluent-editor/demos/add-toolbar-item.spec.ts b/packages/docs/fluent-editor/demos/add-toolbar-item.spec.ts index b1d2bbb..85f48b3 100644 --- a/packages/docs/fluent-editor/demos/add-toolbar-item.spec.ts +++ b/packages/docs/fluent-editor/demos/add-toolbar-item.spec.ts @@ -2,7 +2,7 @@ import { expect, test } from '@playwright/test' test.describe('AddToolbarItem.vue', () => { test.beforeEach(async ({ page }) => { - await page.goto('http://localhost:5173/fluent-editor/docs/add-toolbar-item') + await page.goto('http://localhost:5173/tiny-editor/docs/add-toolbar-item') }) test('should render the editor', async ({ page }) => { diff --git a/packages/docs/fluent-editor/demos/basic-usage.spec.ts b/packages/docs/fluent-editor/demos/basic-usage.spec.ts index c906b80..1151471 100644 --- a/packages/docs/fluent-editor/demos/basic-usage.spec.ts +++ b/packages/docs/fluent-editor/demos/basic-usage.spec.ts @@ -2,7 +2,7 @@ import { expect, test } from '@playwright/test' test('has toolbar', async ({ page }) => { // page.on('pageerror', exception => expect(exception).toBeNull()) - await page.goto('http://localhost:5173/fluent-editor/docs/basic-usage') + await page.goto('http://localhost:5173/tiny-editor/docs/basic-usage') const toolbar = page.locator('.ql-toolbar') const editor = page.locator('.ql-editor') diff --git a/packages/docs/fluent-editor/demos/image-upload.spec.ts b/packages/docs/fluent-editor/demos/image-upload.spec.ts index 8aa48a2..83a2d61 100644 --- a/packages/docs/fluent-editor/demos/image-upload.spec.ts +++ b/packages/docs/fluent-editor/demos/image-upload.spec.ts @@ -7,7 +7,7 @@ const currentDirectory = path.dirname(__filename) const baseUrl = path.dirname(currentDirectory) test('image-upload', async ({ page }) => { - await page.goto('http://localhost:5173/fluent-editor/docs/image-upload') + await page.goto('http://localhost:5173/tiny-editor/docs/image-upload') // upload await page.getByLabel('image').first().click() diff --git a/packages/docs/fluent-editor/docs/demo/table.md b/packages/docs/fluent-editor/docs/demo/table.md index 0b6765b..9f7554e 100644 --- a/packages/docs/fluent-editor/docs/demo/table.md +++ b/packages/docs/fluent-editor/docs/demo/table.md @@ -9,7 +9,7 @@ ## 文本配置 -可以通过`better-table`的 options 对显示文字进行修改,或者通过`i18n`的 options 进行修改([i18n相关文本配置](https://opentiny.github.io/fluent-editor/docs/i18n))。 +可以通过`better-table`的 options 对显示文字进行修改,或者通过`i18n`的 options 进行修改([i18n相关文本配置](https://opentiny.github.io/tiny-editor/docs/i18n))。 `better-table`的 options 文本配置优先级更高,下面示例表格菜单子标题将会显示`'主题色2'`而非`'主题色1'`。 diff --git a/packages/docs/fluent-editor/index.md b/packages/docs/fluent-editor/index.md index ef1a082..e06c231 100644 --- a/packages/docs/fluent-editor/index.md +++ b/packages/docs/fluent-editor/index.md @@ -13,7 +13,7 @@ hero: link: /docs/quick-start - theme: alt text: GitHub - link: https://github.com/opentiny/fluent-editor + link: https://github.com/opentiny/tiny-editor features: - icon: 📦 title: 开箱即用 diff --git a/packages/fluent-editor/package.json b/packages/fluent-editor/package.json index fded900..56308ae 100644 --- a/packages/fluent-editor/package.json +++ b/packages/fluent-editor/package.json @@ -4,13 +4,13 @@ "description": "A rich text editor based on Quill 2.0, which extends rich modules and formats on the basis of Quill. It's powerful and out-of-the-box.", "author": "OpenTiny Team", "license": "MIT", - "homepage": "https://opentiny.github.io/fluent-editor/", + "homepage": "https://opentiny.github.io/tiny-editor/", "repository": { "type": "git", - "url": "git@github.com:opentiny/fluent-editor.git" + "url": "git@github.com:opentiny/tiny-editor.git" }, "bugs": { - "url": "https://github.com/opentiny/fluent-editor/issues" + "url": "https://github.com/opentiny/tiny-editor/issues" }, "keywords": [ "editor",