halo-sigs / plugin-hybrid-edit-block Goto Github PK
View Code? Open in Web Editor NEW为默认富文本编辑器提供编写 Markdown / HTML 的内容块扩展
Home Page: https://www.halo.run/store/apps/app-NgHnY
License: GNU General Public License v3.0
为默认富文本编辑器提供编写 Markdown / HTML 的内容块扩展
Home Page: https://www.halo.run/store/apps/app-NgHnY
License: GNU General Public License v3.0
使用 Markdown 编辑器自定义 HTML ,保存后刷新再次编辑 Markdown 块,原内容会无法渲染出现丢失。
如下 Markdown
<figure style="display: flex; justify-content: space-around">
![Static Badge](https://img.shields.io/badge/1Panel-v1.8.3-green?style=flat&logoColor=yellow&label=1Panel&labelColor=blue&color=green&cacheSeconds=3600&link=https%3A%2F%2F1panel.cn%2F)
![Static Badge](https://img.shields.io/badge/OpenResty-1.21.4.3-blue?style=flat&logoColor=yellow&label=OpenResty&labelColor=blue&color=green&cacheSeconds=3600&link=https%3A%2F%2F1panel.cn%2F)
</figure>
在刷新前如下所示:
刷新后变为下述形式:
刷新后再次编辑,内容变为
![Static Badge](https://img.shields.io/badge/1Panel-v1.8.3-green?style=flat&logoColor=yellow&label=1Panel&labelColor=blue&color=green&cacheSeconds=3600&link=https%3A%2F%2F1panel.cn%2F)
![Static Badge](https://img.shields.io/badge/OpenResty-1.21.4.3-blue?style=flat&logoColor=yellow&label=OpenResty&labelColor=blue&color=green&cacheSeconds=3600&link=https%3A%2F%2F1panel.cn%2F)
/kind bug
在 Markdown 编辑块中仅使用 <br>
时,会导致编辑器报错。
halo-rich-text-editor.iife.ccf0d420.js:21 Uncaught (in promise) RangeError: Empty text nodes are not allowed
at new Ca (halo-rich-text-editor.iife.ccf0d420.js:21:48432)
at Aa.text (halo-rich-text-editor.iife.ccf0d420.js:22:8357)
at Object.getContent (bundle.js?t=1702885450664:574:2061)
at mg.addElementByRule (halo-rich-text-editor.iife.ccf0d420.js:24:919)
at halo-rich-text-editor.iife.ccf0d420.js:23:1125
at mg.withStyleRules (halo-rich-text-editor.iife.ccf0d420.js:22:13120)
at mg.addElement (halo-rich-text-editor.iife.ccf0d420.js:23:1098)
at mg.addDOM (halo-rich-text-editor.iife.ccf0d420.js:22:13043)
at mg.addAll (halo-rich-text-editor.iife.ccf0d420.js:24:1411)
at fr.parse (halo-rich-text-editor.iife.ccf0d420.js:22:9274)
/kind bug
大佬您好,以下是问题描述
在文章的Markdown编辑框内完成编辑后,右侧的目录无法正确显示子目录和跳转
右侧目录只能高亮第一标题,往下拉其他标题不会高亮和展开
下拉后,点击右侧目录会返回最上面
感谢您的工作
默认编辑器
MMarkdown编辑块
# 检测网站并自动重启OpenResty服务
![Static Badge](https://img.shields.io/badge/1Panel-v1.8.3-green?style=flat&logoColor=yellow&label=1Panel&labelColor=blue&color=green&cacheSeconds=3600&link=https%3A%2F%2F1panel.cn%2F)
![Static Badge](https://img.shields.io/badge/OpenResty-1.21.4.3-blue?style=flat&logoColor=yellow&label=OpenResty&labelColor=blue&color=green&cacheSeconds=3600&link=https%3A%2F%2F1panel.cn%2F)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.