Skip to content

插件冲突,不清楚是哪几个插件导致的 #9883

@lyymo

Description

@lyymo

前置条件

  • 已经在 issues 列表中搜索了相关问题。
  • 这是 Halo 项目本身存在的问题,如果是非项目本身的问题(如:安装部署问题),建议在 Discussions 提交。
  • 已经尝试过停用所有的插件,排除是插件导致的问题。
  • 如果是插件和主题的问题,请在对应的插件和主题仓库提交。

系统信息

-版本:2.23.3
-操作系统:Linux
-已激活主题:theme-clarity
-插件ID及名称:
1.PluginHighlightJS(highlight.js 代码高亮)
2.editor-emoji(Emoji 表情选择器)
3.shiki(Shiki 代码高亮)

使用的哪种方式运行?

Docker

发生了什么?

问题描述:在页面模块编辑文章时,在文章内部添加html代码块,保存并发布之后一直不生效,然后打开F12发现有报错, 把以下几个插件关掉就可以发布成功了,具体不清楚是哪几个插件冲突导致的。
1.PluginHighlightJS(highlight.js 代码高亮)
2.editor-emoji(Emoji 表情选择器)
3.shiki(Shiki 代码高亮)

复现步骤

把这几个插件都打开,然后打开页面模块新建页面,在文章内新增HTML编辑块,粘贴html代码会乱序,最后保存并发布也不生效

相关日志输出

Duplicate found for Extension, type: node, name: codeBlock. Keeping the later one. (anonymous) @ editor.17b178db.js:126 fE @ editor.17b178db.js:126 addExtensions @ editor.17b178db.js:176 (anonymous) @ editor.17b178db.js:10 hu @ editor.17b178db.js:10 ku @ editor.17b178db.js:10 Yd @ editor.17b178db.js:15 createExtensionManager @ editor.17b178db.js:85 ff @ editor.17b178db.js:85 JT @ editor.17b178db.js:126 (anonymous) @ use-session-keep-alive-BWtvIag0.js:1 await in (anonymous) (anonymous) @ vue.8fe2ef60.js:7 tD @ vue.8fe2ef60.js:5 tF @ vue.8fe2ef60.js:5 t.__weh.t.__weh @ vue.8fe2ef60.js:7 tZ @ vue.8fe2ef60.js:5 e @ vue.8fe2ef60.js:5 Promise.then tG @ vue.8fe2ef60.js:5 tJ @ vue.8fe2ef60.js:5 i.scheduler @ vue.8fe2ef60.js:5 scheduler @ vue.8fe2ef60.js:5 trigger @ vue.8fe2ef60.js:5 eS @ vue.8fe2ef60.js:5 ej @ vue.8fe2ef60.js:5 set @ vue.8fe2ef60.js:5 X @ SinglePageEditor-YntEWQfd.js:1 await in X (anonymous) @ SinglePageEditor-YntEWQfd.js:1 await in (anonymous) (anonymous) @ vue.8fe2ef60.js:7 tD @ vue.8fe2ef60.js:5 tF @ vue.8fe2ef60.js:5 t.__weh.t.__weh @ vue.8fe2ef60.js:7 tZ @ vue.8fe2ef60.js:5 e @ vue.8fe2ef60.js:5 Promise.then tG @ vue.8fe2ef60.js:5 tJ @ vue.8fe2ef60.js:5 i.scheduler @ vue.8fe2ef60.js:5 scheduler @ vue.8fe2ef60.js:5 trigger @ vue.8fe2ef60.js:5 eS @ vue.8fe2ef60.js:5 notify @ vue.8fe2ef60.js:5 trigger @ vue.8fe2ef60.js:5 set value @ vue.8fe2ef60.js:5 T @ vue-router.fc101cda.js:6 (anonymous) @ vue-router.fc101cda.js:6 Promise.then S @ vue-router.fc101cda.js:6 b @ vue-router.fc101cda.js:6 l @ vue-router.fc101cda.js:6 tD @ vue.8fe2ef60.js:5 tF @ vue.8fe2ef60.js:5 s @ vue.8fe2ef60.js:7 799.0679e9dd.js:9 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently (anonymous) @ 799.0679e9dd.js:9 (anonymous) @ 799.0679e9dd.js:9 (anonymous) @ 799.0679e9dd.js:9 addStorage @ 799.0679e9dd.js:9 addStorage @ 583.2797de54.js:1 iM @ 799.0679e9dd.js:1 get storage @ 799.0679e9dd.js:1 (anonymous) @ editor.17b178db.js:10 hu @ editor.17b178db.js:10 (anonymous) @ editor.17b178db.js:10 hu @ editor.17b178db.js:10 ku @ editor.17b178db.js:10 Yd @ editor.17b178db.js:15 createExtensionManager @ editor.17b178db.js:85 ff @ editor.17b178db.js:85 JT @ editor.17b178db.js:126 (anonymous) @ use-session-keep-alive-BWtvIag0.js:1 await in (anonymous) (anonymous) @ vue.8fe2ef60.js:7 tD @ vue.8fe2ef60.js:5 tF @ vue.8fe2ef60.js:5 t.__weh.t.__weh @ vue.8fe2ef60.js:7 tZ @ vue.8fe2ef60.js:5 e @ vue.8fe2ef60.js:5 Promise.then tG @ vue.8fe2ef60.js:5 tJ @ vue.8fe2ef60.js:5 i.scheduler @ vue.8fe2ef60.js:5 scheduler @ vue.8fe2ef60.js:5 trigger @ vue.8fe2ef60.js:5 eS @ vue.8fe2ef60.js:5 ej @ vue.8fe2ef60.js:5 set @ vue.8fe2ef60.js:5 X @ SinglePageEditor-YntEWQfd.js:1 await in X (anonymous) @ SinglePageEditor-YntEWQfd.js:1 await in (anonymous) (anonymous) @ vue.8fe2ef60.js:7 tD @ vue.8fe2ef60.js:5 tF @ vue.8fe2ef60.js:5 t.__weh.t.__weh @ vue.8fe2ef60.js:7 tZ @ vue.8fe2ef60.js:5 e @ vue.8fe2ef60.js:5 Promise.then tG @ vue.8fe2ef60.js:5 tJ @ vue.8fe2ef60.js:5 i.scheduler @ vue.8fe2ef60.js:5 scheduler @ vue.8fe2ef60.js:5 trigger @ vue.8fe2ef60.js:5 eS @ vue.8fe2ef60.js:5 notify @ vue.8fe2ef60.js:5 trigger @ vue.8fe2ef60.js:5 set value @ vue.8fe2ef60.js:5 T @ vue-router.fc101cda.js:6 (anonymous) @ vue-router.fc101cda.js:6 Promise.then S @ vue-router.fc101cda.js:6 b @ vue-router.fc101cda.js:6 l @ vue-router.fc101cda.js:6 tD @ vue.8fe2ef60.js:5 tF @ vue.8fe2ef60.js:5 s @ vue.8fe2ef60.js:7 editor.17b178db.js:10 [tiptap warn]: Duplicate extension names found: ['textStyleKit', 'textStyle', 'color', 'backgroundColor', 'fontFamily', 'fontSize', 'lineHeight', 'listItem']. This can lead to issues.

附加信息

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions