Skip to content

options.toolbar支持自定义绑定class #271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
codingcn opened this issue Apr 3, 2020 · 0 comments
Closed

options.toolbar支持自定义绑定class #271

codingcn opened this issue Apr 3, 2020 · 0 comments
Assignees
Milestone

Comments

@codingcn
Copy link

codingcn commented Apr 3, 2020

你在什么场景下需要该功能?

比如想实现以下toolbar,目前不改动原样式文件应该是做不到的

自定义toolbar

描述可能的解决方案

可以支持类似以下配置

{
    hotkey: "⌘-'",
    name: "fullscreen",
    tipPosition: "nw",
    class: "float-r w-3",
    icon: "文字文字文字体"
},

然后会为.vditor-toolbar__item追加同级class.float-r .w-3

@Vanessa219 Vanessa219 self-assigned this Apr 3, 2020
@Vanessa219 Vanessa219 added this to the 3.0.0 milestone Apr 3, 2020
stevapple pushed a commit to stevapple/vditor that referenced this issue Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants