# 支持查看文章历史版本，Halo 2.15.0 发布

原文：<https://www.halo.run/archives/halo-2.15-released>

Halo 是一款强大易用的开源建站工具，它让你无需太多的技术知识就可以快速搭建一个博客、网站或者内容管理系统。具备可插拔架构、主题套用、富文本编辑器等多重特性，支持用户根据自己的喜好选择不同类型的插件及主题模板来定制化自己的站点功能及外观。让内容创作和发布更加便捷生动。

截至目前（2024 年 Q1 季度），Halo 已经在 Docker Hub 获得了超过 210 万次下载，GitHub Star 数突破 31 k，并拥有一百多名社区贡献者。

2024 年 04 月 30 日，强大易用的开源建站工具 Halo 正式发布 2.15.0 版本。

在这个版本中，Halo 主要新增了查看文章历史版本的功能，以及其他 40 多项功能优化和问题修复。

## 亮点更新

### 文章历史版本

在 Halo 2.15.0 版本中，我们新增了查看文章历史版本的功能，可以方便在这个界面查看已有的历史版本，也可以选择某个版本进行恢复和删除，同时也支持一键删除无用的版本历史。

![2.15-snapshots.png](https://www.halo.run/upload/2.15-snapshots.png)

![2.15-snapshots-cleanup.png](https://www.halo.run/upload/2.15-snapshots-cleanup.png)

### 编辑器功能更新

在 Halo 2.15.0 版本中，我们对默认编辑器进行了大量的优化和功能更新，支持了设置段落行高、清除文本格式等功能。

#### 支持设置段落行高

现在可以选中一段文本，然后设置行高（行间距）。

![2.15-editor-line-hight.png](https://www.halo.run/upload/2.15-editor-line-hight.png)

#### 支持清除文本格式

现在可以选中一段文本，一键清除文本格式，这对从其他编辑器复制内容时，处理样式问题会非常有帮助。

![2.15-editor-clear-format.png](https://www.halo.run/upload/2.15-editor-clear-format.png)

#### 支持格式刷

现在可以选择一段文本并复制已经设置的格式，然后应用到其他文本。

![2.15-editor-format-brush-1.png](https://www.halo.run/upload/2.15-editor-format-brush-1.png)

![2.15-editor-format-brush-2.png](https://www.halo.run/upload/2.15-editor-format-brush-2.png)

## 完整更新日志

### 新特性

-   支持浏览、恢复、删除文章历史快照。 by [@ruibaby](https://github.com/ruibaby) in [#5787](https://github.com/halo-dev/halo/pull/5787)
    
-   为默认编辑器表格增加 Tab 快捷键切换单元格的功能。 by [@LIlGG](https://github.com/LIlGG) in [#5784](https://github.com/halo-dev/halo/pull/5784)
    
-   在个人中心的个人资料页面添加邮箱已验证的标识。 by [@ruibaby](https://github.com/ruibaby) in [#5783](https://github.com/halo-dev/halo/pull/5783)
    
-   更新邮箱地址时需进行密码验证。 by [@guqing](https://github.com/guqing) in [#5780](https://github.com/halo-dev/halo/pull/5780)
    
-   新增修改用户密码之后踢除用户的所有登陆会话的功能。 by [@guqing](https://github.com/guqing) in [#5757](https://github.com/halo-dev/halo/pull/5757)
    
-   用户修改密码功能增加原始密码确认步骤。 by [@guqing](https://github.com/guqing) in [#5748](https://github.com/halo-dev/halo/pull/5748)
    
-   在文章列表增加按照更新时间进行排序的选项。 by [@LIlGG](https://github.com/LIlGG) in [#5727](https://github.com/halo-dev/halo/pull/5727)
    
-   为文章标签列表增加关键词搜索及排序的功能。 by [@LIlGG](https://github.com/LIlGG) in [#5710](https://github.com/halo-dev/halo/pull/5710)
    
-   将 Console 与 UC 的标签页标题改为网站实际标题。 by [@LIlGG](https://github.com/LIlGG) in [#5696](https://github.com/halo-dev/halo/pull/5696)
    
-   为默认富文本编辑器添加清除格式的功能。 by [@LIlGG](https://github.com/LIlGG) in [#5685](https://github.com/halo-dev/halo/pull/5685)
    
-   为默认富文本编辑器增加行高设置。 by [@LIlGG](https://github.com/LIlGG) in [#5681](https://github.com/halo-dev/halo/pull/5681)
    
-   评论数据返回邮箱地址 hash 值以便生成默认头像。 by [@mashirot](https://github.com/mashirot) in [#5642](https://github.com/halo-dev/halo/pull/5642)
    
-   文章管理支持根据访问量和评论量排序。 by [@ZJamss](https://github.com/ZJamss) in [#5614](https://github.com/halo-dev/halo/pull/5614)
    
-   为默认富文本编辑器添加格式刷扩展。 by [@LIlGG](https://github.com/LIlGG) in [#5603](https://github.com/halo-dev/halo/pull/5603)
    
-   使用分页列表的形式重构文章标签页 UI。 by [@LIlGG](https://github.com/LIlGG) in [#5593](https://github.com/halo-dev/halo/pull/5593)
    

### 功能优化

-   优化 Console 的请求异常提示，方便异常排查。 by [@ruibaby](https://github.com/ruibaby) in [#5796](https://github.com/halo-dev/halo/pull/5796)
    
-   重构 Console 和 UC 的浏览器标题切换。 by [@ruibaby](https://github.com/ruibaby) in [#5794](https://github.com/halo-dev/halo/pull/5794)
    
-   优化注册表单的用户名校验规则。 by [@ruibaby](https://github.com/ruibaby) in [#5740](https://github.com/halo-dev/halo/pull/5740)
    
-   优化插件详情页面的字段显示。 by [@ruibaby](https://github.com/ruibaby) in [#5724](https://github.com/halo-dev/halo/pull/5724)
    
-   优化主题详情页面的字段显示。 by [@ruibaby](https://github.com/ruibaby) in [#5723](https://github.com/halo-dev/halo/pull/5723)
    
-   优化评论数据的调协过程以降低 Halo 启动时评论的调协耗时同时提高性能和资源利用率。 by [@guqing](https://github.com/guqing) in [#5708](https://github.com/halo-dev/halo/pull/5708)
    
-   将新建用户的表单中的角色设置设为必填。 by [@mashirot](https://github.com/mashirot) in [#5697](https://github.com/halo-dev/halo/pull/5697)
    
-   当未开启允许注册选项时，隐藏注册相关的其他选项。 by [@mashirot](https://github.com/mashirot) in [#5690](https://github.com/halo-dev/halo/pull/5690)
    
-   对默认富文本编辑器中的工具栏进行折叠及精简优化。 by [@LIlGG](https://github.com/LIlGG) in [#5683](https://github.com/halo-dev/halo/pull/5683)
    
-   优化默认富文本编辑器中顶部工具栏的子菜单弹出方式。 by [@LIlGG](https://github.com/LIlGG) in [#5682](https://github.com/halo-dev/halo/pull/5682)
    
-   优化默认富文本编辑器中文本自动转为链接的相关逻辑。 by [@LIlGG](https://github.com/LIlGG) in [#5680](https://github.com/halo-dev/halo/pull/5680)
    
-   优化分类关联文章数量的统计方式避免无效统计和额外的查询开销。 by [@guqing](https://github.com/guqing) in [#5671](https://github.com/halo-dev/halo/pull/5671)
    
-   限定文章或页面中的发布日期中的年份为四位数。 by [@LIlGG](https://github.com/LIlGG) in [#5666](https://github.com/halo-dev/halo/pull/5666)
    
-   优化文章上一篇下一篇的查询方式避免瞬时内存占用过高。 by [@guqing](https://github.com/guqing) in [#5659](https://github.com/halo-dev/halo/pull/5659)
    
-   优化分类关联文章数量的查询避免因查询数据量过大而导致的阻塞或内存溢出。 by [@guqing](https://github.com/guqing) in [#5658](https://github.com/halo-dev/halo/pull/5658)
    
-   优化通知订阅数据查询以解决由于数据过多导致查询慢进而阻塞调用方的问题。 by [@guqing](https://github.com/guqing) in [#5656](https://github.com/halo-dev/halo/pull/5656)
    
-   插件支持显示启动中的状态。 by [@ruibaby](https://github.com/ruibaby) in [#5520](https://github.com/halo-dev/halo/pull/5520)
    
-   通知订阅支持基于表达式订阅避免订阅随数据量增长同时自动优化之前的订阅数据。 by [@guqing](https://github.com/guqing) in [#5705](https://github.com/halo-dev/halo/pull/5705)
    
-   优化编辑器的部分 UI。 by [@ruibaby](https://github.com/ruibaby) in [#5828](https://github.com/halo-dev/halo/pull/5828)
    

### 问题修复

-   降级 PF4J 至 3.10.0 以修复部分情况下类无法卸载的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#5770](https://github.com/halo-dev/halo/pull/5770)
    
-   修复插件启动失败后没有正确清理资源的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#5765](https://github.com/halo-dev/halo/pull/5765)
    
-   修复默认编辑器中粘贴代码块会出现错行的问题。 by [@LIlGG](https://github.com/LIlGG) in [#5737](https://github.com/halo-dev/halo/pull/5737)
    
-   布局高度引发页面背景色未完全填充滚动区域的问题。 by [@AeroWang](https://github.com/AeroWang) in [#5698](https://github.com/halo-dev/halo/pull/5698)
    
-   修复附件详情弹窗可能无法显示数据的问题。 by [@LIlGG](https://github.com/LIlGG) in [#5695](https://github.com/halo-dev/halo/pull/5695)
    
-   解决 Excel 表格粘贴至默认编辑器后会变为图片的问题。 by [@LIlGG](https://github.com/LIlGG) in [#5793](https://github.com/halo-dev/halo/pull/5793)
    

### 开发者相关

-   为 Console 的用户详情页面的选项卡和个人中心的个人资料页面选项卡添加扩展点。 by [@ruibaby](https://github.com/ruibaby) in [#5763](https://github.com/halo-dev/halo/pull/5763)
    
-   为主题和插件的定义文件添加问题反馈（issues）字段。 by [@ruibaby](https://github.com/ruibaby) in [#5755](https://github.com/halo-dev/halo/pull/5755)
    
-   支持在插件中实现 WebSocket。 by [@JohnNiang](https://github.com/JohnNiang) in [#5662](https://github.com/halo-dev/halo/pull/5662)
    

### 依赖更新

-   升级 Spring Boot 至 3.3.0-RC1。 by [@JohnNiang](https://github.com/JohnNiang) in [#5760](https://github.com/halo-dev/halo/pull/5760)
    
-   升级 Tiptap 的版本为 2.3.0。 by [@ruibaby](https://github.com/ruibaby) in [#5655](https://github.com/halo-dev/halo/pull/5655)
