Skip to content
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

是否可以提供覆盖工具栏中文字的字体大小以及family #705

Open
anewcoder1992 opened this issue Jan 8, 2020 · 4 comments

Comments

@anewcoder1992
Copy link

image
如上图 Font Size 和Line Height 这两文字都是 14px family 是 ‘system-ui’
image
工具栏文字的显示都是在css中写死了。然而事实上 比如现在我开发的系统中药引入这个富文本编辑器。我系统中使用的 文字是sise 是 13px family 是Roboto", "Helvetica", "Arial", sans-serif。现在我想要的是如何把这编辑器工具栏的 文案显示也使用我系统中的 字体呢?是否能提供自定义工具栏的css呢

@liadbe
Copy link

liadbe commented Jan 20, 2020

Hi, I wasn't sure if I translated properly, but if I understand correctly- I have the same problem. I've set specific font and size defaults in my css, and I want it to be shown in the toolbar as the default text and size. Currently that's not happening.

@sahar922
Copy link

any progress?

@margox
Copy link
Owner

margox commented Feb 28, 2020

是要统一设置还是单个设置呢? 统一设置的话,可以通controlBarClassName这个属性给工具栏的DOM加className,然后覆盖下面的按钮文字的样式

@margox
Copy link
Owner

margox commented Feb 28, 2020

单个设置,目前没有太好的办法,因为目前大部分按钮控件,都是统一的样式名

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants