halo/console
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
..
.changeset Move root to console 2023-03-02 15:49:22 +08:00
.husky Refactor workflow for new console project (#3445) 2023-03-02 18:07:23 +08:00
.vscode Move root to console 2023-03-02 15:49:22 +08:00
console-src refactor: data fetching of dashboard widgets (#5280) 2024-01-30 07:36:20 +00:00
cypress Move root to console 2023-03-02 15:49:22 +08:00
docs refactor: improve project structure for user center feature (#4839) 2023-11-09 06:56:06 +00:00
packages fix: preserve white spaces when parsing the default editor (#5292) 2024-01-31 10:20:08 +00:00
public Move root to console 2023-03-02 15:49:22 +08:00
src fix: preserve white spaces when parsing the default editor (#5292) 2024-01-31 10:20:08 +00:00
uc-src fix: issue of non-template roles being displayed in personal token roles 2024-01-31 15:42:57 +08:00
.editorconfig Move root to console 2023-03-02 15:49:22 +08:00
.env.development Configure default external-url as slash (#3655) 2023-04-03 03:50:13 +00:00
.env.production Move root to console 2023-03-02 15:49:22 +08:00
.eslintrc.cjs feat: use storybook to refactor components library docs (#4944) 2023-12-06 08:30:13 +00:00
.gitignore chore: add storybook-static folder to .gitignore (#5075) 2023-12-19 09:12:07 +00:00
.gitpod.yml Move root to console 2023-03-02 15:49:22 +08:00
.npmignore Move root to console 2023-03-02 15:49:22 +08:00
.npmrc Move root to console 2023-03-02 15:49:22 +08:00
.prettierignore feat: add i18n supports for console (#3506) 2023-03-23 08:54:33 +00:00
Makefile Support publishing to maven central repository (#3767) 2023-04-18 14:28:23 +08:00
OWNERS Refactor workflow for new console project (#3445) 2023-03-02 18:07:23 +08:00
README.md chore: bump pnpm version to 8 (#3935) 2023-05-11 08:50:21 +00:00
cypress.json Move root to console 2023-03-02 15:49:22 +08:00
env.d.ts Refactor menu generation strategy to support sub-menu items. (#5177) 2024-01-19 05:34:10 +00:00
index.html feat: build infrastructure for user center feature (#4806) 2023-11-02 09:00:28 +00:00
package.json chore: add vue dev tools (#5134) 2024-01-29 08:50:42 +00:00
pnpm-lock.yaml chore: add vue dev tools (#5134) 2024-01-29 08:50:42 +00:00
pnpm-workspace.yaml Move root to console 2023-03-02 15:49:22 +08:00
postcss.config.js fix: modal height issue in ios devices (#4106) 2023-06-25 02:06:14 +00:00
prettier.config.js Move root to console 2023-03-02 15:49:22 +08:00
tailwind.config.js feat: add tailwindcss/forms plugin to standardize the style of form elements (#4893) 2023-11-23 09:32:09 +00:00
tsconfig.app.json feat: build infrastructure for user center feature (#4806) 2023-11-02 09:00:28 +00:00
tsconfig.json chore: improve the console project infrastructure (#4105) 2023-06-26 03:54:17 +00:00
tsconfig.node.json feat: build infrastructure for user center feature (#4806) 2023-11-02 09:00:28 +00:00
tsconfig.vitest.json Move root to console 2023-03-02 15:49:22 +08:00
vite.config.ts refactor: improve project structure for user center feature (#4839) 2023-11-09 06:56:06 +00:00
vite.uc.config.ts refactor: improve project structure for user center feature (#4839) 2023-11-09 06:56:06 +00:00
vitest.config.ts feat: build infrastructure for user center feature (#4806) 2023-11-02 09:00:28 +00:00

README.md

README

Halo logo

Halo 2.0 的管理端项目(原 halo-admin

GitHub release GitHub GitHub last commit GitHub Workflow Status Gitpod ready-to-code


当前仓库已经将 halo-admin 改为了 console。但对于 Halo 1.x 版本,依旧保持 halo-admin 的概念。

开发环境运行

npm install -g pnpm@8
pnpm install 
pnpm build:packages
pnpm dev

生产构建

pnpm build

状态

Repobeats analytics