Ryan Wang
8db4cec91e
feat: add support for inserting external media resources to the default editor ( #4126 )
...
#### What type of PR is this?
/kind feature
/area console
/area editor
/milestone 2.7.x
#### What this PR does / why we need it:
默认编辑器支持直接插入图片、视频、音频,提供除了附件库的媒体插入入口。
<img width="1011" alt="image" src="https://github.com/halo-dev/halo/assets/21301288/4c9be243-882f-4d21-9fa8-ce3033744746 ">
通过链接插入图片需要 https://github.com/halo-sigs/richtext-editor/pull/17 的支持。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3882
Fixes https://github.com/halo-dev/halo/issues/3994
#### Special notes for your reviewer:
测试编辑器通过链接插入图片、视频、音频的功能是否正常。
#### Does this PR introduce a user-facing change?
```release-note
默认编辑器支持不通过附件库直接插入图片、视频、音频。
```
2023-06-28 09:54:11 +00:00
Ryan Wang
c39691d6fe
feat: make default editor extensible ( #4090 )
...
#### What type of PR is this?
/area console
/kind feature
/milestone 2.7.x
#### What this PR does / why we need it:
默认编辑器支持扩展,包括输入类型、工具栏、Slash Command 等。
Ref https://github.com/halo-sigs/richtext-editor/pull/16
## 定义方式
```ts
import ExtensionFoo from "./tiptap/extension-foo.ts"
export default definePlugin({
extensionPoints: {
"default:editor:extension:create": () => {
return [ExtensionFoo];
},
},
});
```
其中,`ExtensionFoo` 是一个 Tiptap Extension,可以参考 [Tiptap 文档](https://tiptap.dev/ ) 和 [https://github.com/halo-sigs/richtext-editor/blob/main/docs/extension.md ](https://github.com/halo-sigs/richtext-editor/blob/main/docs/extension.md )。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/4028
#### Does this PR introduce a user-facing change?
```release-note
Console 端的默认编辑器支持被扩展
```
2023-06-26 13:33:59 +00:00
Li
01f66cb3b6
fix: outline not displayed when first entering the editor. ( #3773 )
...
#### What type of PR is this?
/kind bug
/area console
#### What this PR does / why we need it:
为默认编辑器侦听器增加 `immediate` 属性,使其在创建之后立即执行,生成目录。
#### Which issue(s) this PR fixes:
Fixes #3769
#### Special notes for your reviewer:
打开已经存在并且具有标题的文章/页面,查看大纲是否正常生成。
#### Does this PR introduce a user-facing change?
```release-note
修复文章/页面已有内容重新编辑时,无法立即显示大纲的问题。
```
2023-04-18 06:34:57 +00:00
Ryan Wang
c9a5a01bf1
chore: bump @halo-dev/richtext-editor version to support i18n ( #3613 )
...
#### What type of PR is this?
/kind feature
/area console
/milestone 2.4.x
#### What this PR does / why we need it:
升级 `@halo-dev/richtext-editor` 以支持 i18n。 https://github.com/halo-sigs/richtext-editor/pull/6
<img width="1406" alt="image" src="https://user-images.githubusercontent.com/21301288/228414222-e5014957-1d30-4fdc-9db6-0f79e07a73b5.png ">
<img width="1432" alt="image" src="https://user-images.githubusercontent.com/21301288/228414283-a2d401cd-a215-4398-9d8d-b33e7373ee49.png ">
#### Which issue(s) this PR fixes:
Ref #3574
#### Special notes for your reviewer:
在不同语言的浏览器中测试编辑器的语言是否显示正确即可。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2023-03-29 06:16:12 +00:00
Ryan Wang
403702021c
perf: improve the style of the scrollbar ( #3587 )
...
#### What type of PR is this?
/kind improvement
/area console
/milestone 2.4.x
#### What this PR does / why we need it:
优化页面滚动条的样式,引入 [OverlayScrollbars](https://github.com/KingSora/OverlayScrollbars ) 实现类似于 macOS 下的仅滚动时显示滚动条的特性,并保证在各个浏览器的表现一致。

#### Special notes for your reviewer:
测试方式:使用不同的浏览器测试滚动条是否可以自动隐藏以及样式是否一致即可。
#### Does this PR introduce a user-facing change?
```release-note
优化 Console 端页面滚动条的样式。
```
2023-03-27 09:20:22 +00:00
Ryan Wang
b63d2b882c
feat: add i18n supports for console ( #3506 )
...
#### What type of PR is this?
/kind feature
#### What this PR does / why we need it:
为 Console 端添加多语言的支持,并默认提供简体中文和英文的语言包。
todolist:
- [x] 完善 Console 的文字语言包翻译。
- [ ] ~~为后端提供的部分数据支持翻译,比如系统设置的表单定义。(实现方式待讨论,这个 PR 先不支持)~~
- [x] 提供语言设置。
#### Which issue(s) this PR fixes:
Fixes #3346
#### Special notes for your reviewer:
测试方式:
1. 检查各个页面的文字显示是否正常。
2. 测试中英文环境中是否使用了对应的语言包。
#### Does this PR introduce a user-facing change?
```release-note
Console 端支持多语言界面
```
2023-03-23 08:54:33 +00:00
johnniang
64919f9a1b
Move root to console
...
Signed-off-by: johnniang <johnniang@fastmail.com>
2023-03-02 15:49:22 +08:00