Replies: 2 comments
-
组件提供theme和previewTheme两个属性,是想用户自己控制,内部没有维护这两个状态,所以不能内置到组件。 你的做法没错,可以考虑将扩展独立到单文件中,代码会更好看。这个扩展虽然不能内置到组件,但是也可以考虑封装,如果有时间你可以考虑分享到 md-editor-extension这个公共仓库共大家使用。如果不方便我会在后面找时间设计一下这两个扩展。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
好的,虽然我是个vue菜鸟,我很乐意试试😊 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
你好作者,在编辑器工具栏能不能增加两个下拉菜单,①预览主题下拉菜单,②代码主题下拉菜单:



比如参考掘金的编辑器:
按照文档,我自己定制了两个下拉菜单按钮,虽然功能可以实现,但是感觉有点啰嗦😁
如果有更好的定制下拉菜单的方法,希望大家分享一下,谢谢❤️
Beta Was this translation helpful? Give feedback.
All reactions