编辑器编写代码块出现闪屏问题 #22

Closed
opened 2023-12-22 14:15:23 +08:00 by zhengyi · 1 comment
Owner

非常神奇,Vditor本体并不会触发资源重写,但时在halo中却出现了github.css重写,也没有找到对应的源码

非常神奇,Vditor本体并不会触发资源重写,但时在halo中却出现了github.css重写,也没有找到对应的源码
Author
Owner

问题结论,Vditor的addStyle方法会判断样式的href是否和cdn一致,但从dom中获取的href包含了网址信息, 而插件提供的则为静态信息,因此导致Vditor认为样式不一致而触发样式重载。

问题结论,Vditor的`addStyle`方法会判断样式的href是否和cdn一致,但从dom中获取的href包含了网址信息, 而插件提供的则为静态信息,因此导致Vditor认为样式不一致而触发样式重载。
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: zhengyi/halo-plugin-vditor#22
No description provided.