halo/console/packages/editor
Takagi dff6522d43
fix: preserve white spaces when parsing the default editor (#5292)
#### What type of PR is this?

/kind bug
/area editor
/area console
/milestone 2.12.x

#### What this PR does / why we need it:

在默认富文本编辑器解析文本时,使其保留空白符。

see https://prosemirror.net/docs/ref/#model.ParseOptions.preserveWhitespace

#### How to test it?

1. 输入一串文字,在其开始、结束、内容中分别键入空白字符。
2. 保存内容
3. 刷新页面,查看空白字符是否保留。

#### Which issue(s) this PR fixes:

Fixes #5260 

#### Does this PR introduce a user-facing change?
```release-note
解决默认富文本编辑器内容刷新后空白字符丢失的问题
```
2024-01-31 10:20:08 +00:00
..
docs chore: move @halo-sigs/richtext-editor to this repository (#4934) 2023-11-29 09:14:23 +08:00
src fix: preserve white spaces when parsing the default editor (#5292) 2024-01-31 10:20:08 +00:00
.eslintrc.cjs chore: move @halo-sigs/richtext-editor to this repository (#4934) 2023-11-29 09:14:23 +08:00
.gitignore chore: move @halo-sigs/richtext-editor to this repository (#4934) 2023-11-29 09:14:23 +08:00
.release-it.json chore: move @halo-sigs/richtext-editor to this repository (#4934) 2023-11-29 09:14:23 +08:00
env.d.ts chore: move @halo-sigs/richtext-editor to this repository (#4934) 2023-11-29 09:14:23 +08:00
index.html fix: resolve error log when running the dev environment of Console (#4983) 2023-12-03 10:30:08 +00:00
package.json chore: change editor version to 2.12.0 (#5281) 2024-01-30 07:53:54 +00:00
postcss.config.js chore: move @halo-sigs/richtext-editor to this repository (#4934) 2023-11-29 09:14:23 +08:00
prettier.config.js chore: move @halo-sigs/richtext-editor to this repository (#4934) 2023-11-29 09:14:23 +08:00
tailwind.config.js chore: move @halo-sigs/richtext-editor to this repository (#4934) 2023-11-29 09:14:23 +08:00
tsconfig.app.json chore: move @halo-sigs/richtext-editor to this repository (#4934) 2023-11-29 09:14:23 +08:00
tsconfig.json chore: move @halo-sigs/richtext-editor to this repository (#4934) 2023-11-29 09:14:23 +08:00
tsconfig.node.json chore: move @halo-sigs/richtext-editor to this repository (#4934) 2023-11-29 09:14:23 +08:00
tsconfig.vitest.json chore: move @halo-sigs/richtext-editor to this repository (#4934) 2023-11-29 09:14:23 +08:00
vite.config.ts chore: move @halo-sigs/richtext-editor to this repository (#4934) 2023-11-29 09:14:23 +08:00
vite.lib.config.ts chore: move @halo-sigs/richtext-editor to this repository (#4934) 2023-11-29 09:14:23 +08:00