You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

.NET MVC项目中CKEditor5下划线工具无法显示问题求助

解决CKEditor5下划线工具不显示问题

问题出在工具栏项的名称大小写错误:你配置的Underline不符合CKEditor5的命令命名规范,官方定义的下划线工具标识是小写开头的underline。

修改你的JS配置代码,将Underline改为underline即可:

ClassicEditor.create(this, {
    toolbar: ['bold', 'italic', 'underline', 'bulletedList', 'numberedList', 'link'],
}).catch(error => {
    console.error(error);
});

你使用的Classic Editor CDN包(39.0.1版本)默认包含下划线工具,无需额外引入插件,修正名称后下划线按钮就能正常显示在工具栏中。

内容的提问来源于stack exchange,提问作者PK CREATIONS

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.16 06:34:49