补充gallery文档及快捷插入 #44

Closed
opened 2024-01-14 16:37:12 +08:00 by Bot · 4 comments
Collaborator

Opened in GitHub by userchengzhongxue

null

Opened in [GitHub](https://github.com/justice2001/halo-plugin-vditor/issues/15) by user[chengzhongxue](https://github.com/chengzhongxue) null
Author
Collaborator

comment in GitHub by user avatarjustice2001

不好意思哈,先看这个文档吧:https://github.com/justice2001/vditor-halo-render/blob/dev/doc/gallery.md

其他地方的文档还没补全。快捷按钮也还没放。

comment in [GitHub](https://github.com/justice2001/halo-plugin-vditor/issues/15#issuecomment-1890899697) by user <img style="border-radius: 50%" src="https://avatars.githubusercontent.com/u/28425753?v=4" width="20" height="20" alt="avatar">[justice2001](https://github.com/justice2001) 不好意思哈,先看这个文档吧:https://github.com/justice2001/vditor-halo-render/blob/dev/doc/gallery.md 其他地方的文档还没补全。快捷按钮也还没放。
zhengyi changed title from vditor-halo-render添加组图组件(gallery) 这个怎么使用,我好像没看到这个东西 to 补充gallery文档及快捷插入 2024-01-14 19:51:10 +08:00
zhengyi added the
Kind
Documentation
Area
Editor
labels 2024-01-14 19:51:28 +08:00
zhengyi added this to the v1.5.x milestone 2024-01-14 19:51:33 +08:00
zhengyi added the
Status
Wait Merge
label 2024-01-16 22:40:52 +08:00
Author
Collaborator

comment in GitHub by user avatarchengzhongxue

我想问一下,就是这样的语法,后面用户可以自己自定义?

comment in [GitHub](https://github.com/justice2001/halo-plugin-vditor/issues/15#issuecomment-1896123711) by user <img style="border-radius: 50%" src="https://avatars.githubusercontent.com/u/89380218?v=4" width="20" height="20" alt="avatar">[chengzhongxue](https://github.com/chengzhongxue) 我想问一下,就是这样的语法,后面用户可以自己自定义?
Author
Collaborator

comment in GitHub by user avatarjustice2001

自定义语法不太好实现,现在这样的语法是在vditor源码上修改的,不太想对vditor有过大的改动。解析器是独立的一个项目:https://github.com/justice2001/vditor-halo-render

现在有个方案就是给其他插件提供注入js和css的功能,其他插件用类似customElement的方法来实现即时渲染的能力。像这样:https://github.com/justice2001/halo-plugin-vditor/issues/11#issuecomment-1877062018

但也会引出一个问题就是vditor其实对HTML的渲染支持并不是非常的友好。暂时还没有想到更好的解决方案。

comment in [GitHub](https://github.com/justice2001/halo-plugin-vditor/issues/15#issuecomment-1896159032) by user <img style="border-radius: 50%" src="https://avatars.githubusercontent.com/u/28425753?v=4" width="20" height="20" alt="avatar">[justice2001](https://github.com/justice2001) 自定义语法不太好实现,现在这样的语法是在vditor源码上修改的,不太想对vditor有过大的改动。解析器是独立的一个项目:https://github.com/justice2001/vditor-halo-render。 现在有个方案就是给其他插件提供注入js和css的功能,其他插件用类似customElement的方法来实现即时渲染的能力。像这样:https://github.com/justice2001/halo-plugin-vditor/issues/11#issuecomment-1877062018 但也会引出一个问题就是vditor其实对HTML的渲染支持并不是非常的友好。暂时还没有想到更好的解决方案。
Author
Collaborator

comment in GitHub by user avatarjustice2001

我想问一下,就是这样的语法,后面用户可以自己自定义?

关于这个问题,需要再次回复下,Vditor上游最近已经提供了自定义解析的能力,下个版本开始应该会使用官方版本的vditor,不出意外的话,我会尝试在快捷插入的功能中加入自定义语法的能力。

comment in [GitHub](https://github.com/justice2001/halo-plugin-vditor/issues/15#issuecomment-1903013789) by user <img style="border-radius: 50%" src="https://avatars.githubusercontent.com/u/28425753?v=4" width="20" height="20" alt="avatar">[justice2001](https://github.com/justice2001) > 我想问一下,就是这样的语法,后面用户可以自己自定义? 关于这个问题,需要再次回复下,Vditor上游最近已经提供了自定义解析的能力,下个版本开始应该会使用官方版本的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#44
No description provided.