# 稳定性优化，Halo 2.18.0 发布

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

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

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

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

Halo 2.18.0 版本主要优化了系统稳定性和问题修复。

## **完整更新日志**

### 新特性

-   支持在离线环境激活许可证。（[专业版](https://www.lxware.cn/halo)）
    
-   支持 Oracle 数据库。（[专业版](https://www.lxware.cn/halo)）
    

-   为本地附件存储策略增加了对上传单文件大小和文件类型限制的功能。 by [@guqing](https://github.com/guqing) in [#6390](https://github.com/halo-dev/halo/pull/6390)
    

### 功能优化

-   附件库支持预览视频封面。 by [@LonelySnowman](https://github.com/LonelySnowman) in [#6265](https://github.com/halo-dev/halo/pull/6265)
    
-   设备管理去除 IP 地址检查以避免频繁登录。 by [@guqing](https://github.com/guqing) in [#6275](https://github.com/halo-dev/halo/pull/6275)
    
-   格式化新设备登录邮件通知内的登录时间为系统时区。 by [@ShiinaKin](https://github.com/ShiinaKin) in [#6309](https://github.com/halo-dev/halo/pull/6309)
    
-   默认编辑器增加 Tab 快捷键首行缩进功能。 by [@LIlGG](https://github.com/LIlGG) in [#6388](https://github.com/halo-dev/halo/pull/6388)
    
-   修改附件选择组件的默认显示数量，以解决因为图片数量过多或者图片过大导致的卡顿问题。 by [@ruibaby](https://github.com/ruibaby) in [#6402](https://github.com/halo-dev/halo/pull/6402)
    
-   移除编辑器分栏卡片的默认 padding 样式。 by [@ruibaby](https://github.com/ruibaby) in [#6407](https://github.com/halo-dev/halo/pull/6407)
    

### 问题修复

-   修复默认编辑器中跨行选择节点时冒泡菜单无法出现的问题。 by [@LIlGG](https://github.com/LIlGG) in [#6268](https://github.com/halo-dev/halo/pull/6268)
    
-   修复创建文章前批量上传图片可能出现异常的问题。 by [@ruibaby](https://github.com/ruibaby) in [#6276](https://github.com/halo-dev/halo/pull/6276)
    
-   修复无法正常刷新搜索引擎的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#6323](https://github.com/halo-dev/halo/pull/6323)
    
-   修复保持登录会话功能可能失效的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#6329](https://github.com/halo-dev/halo/pull/6329)
    
-   修复在没有插件文件的情况下可能无法删除插件的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#6334](https://github.com/halo-dev/halo/pull/6334)
    
-   修复访问不存在的主题资源时出现服务器异常的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#6340](https://github.com/halo-dev/halo/pull/6340)
    
-   解决默认编辑器标题在使用组合输入时，按下回车键会导致其失去焦点的问题。 by [@LIlGG](https://github.com/LIlGG) in [#6347](https://github.com/halo-dev/halo/pull/6347)
    
-   解决默认编辑器中对文本使用高亮会导致按键被阻止的问题。 by [@LIlGG](https://github.com/LIlGG) in [#6387](https://github.com/halo-dev/halo/pull/6387)
    
-   为个人中心发布文章的操作添加重试机制，防止后端因为乐观锁出现异常错误。 by [@ruibaby](https://github.com/ruibaby) in [#6406](https://github.com/halo-dev/halo/pull/6406)
    
-   修复默认编辑器中列表项需要按多次退格键才可以删除的问题。 by [@LIlGG](https://github.com/LIlGG) in [#6408](https://github.com/halo-dev/halo/pull/6408)
    

### 开发者相关

-   支持在插件中获取插件根目录。 by [@JohnNiang](https://github.com/JohnNiang) in [#6269](https://github.com/halo-dev/halo/pull/6269)
    
-   在 BasePlugin 的 PluginWrapper 构造函数输出过时警告日志以提醒开发者尽快适配。 by [@guqing](https://github.com/guqing) in [#6277](https://github.com/halo-dev/halo/pull/6277)
    
-   添加认证授权的前置和后置处理器扩展点。 by [@JohnNiang](https://github.com/JohnNiang) in [#6297](https://github.com/halo-dev/halo/pull/6297)
    
-   插件启动时触发一次插件配置更新事件以便进行资源初始化操作。 by [@guqing](https://github.com/guqing) in [#6346](https://github.com/halo-dev/halo/pull/6346)
    
-   将 ExtensionGetter Bean 共享给插件使用，以便插件可以通过它来获取扩展。 by [@LIlGG](https://github.com/LIlGG) in [#6365](https://github.com/halo-dev/halo/pull/6365)
    
-   新增文章摘要生成扩展点用于扩展自动生成摘要的方式。 by [@guqing](https://github.com/guqing) in [#6348](https://github.com/halo-dev/halo/pull/6348)
    

### 依赖更新

-   升级 Tiptap 相关依赖至 [2.5.x](https://tiptap.dev/blog/release-notes/say-hello-to-tiptap-2-5-our-most-performant-editor-yet)。 by [@ruibaby](https://github.com/ruibaby) in [#6327](https://github.com/halo-dev/halo/pull/6327)
    

* * *

### 升级文档

[https://docs.halo.run/category/安装指南](https://docs.halo.run/category/%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97)
