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

Font family and size default list item shoudl leverage the config labels #2921

Open
blindspeed90 opened this issue Mar 4, 2019 · 4 comments
Labels
plugin:font The plugin which probably causes the issue. status:confirmed An issue confirmed by the development team. type:bug A bug.

Comments

@blindspeed90
Copy link

Type of report

Bug

Provide detailed reproduction steps (if any)

Version 4.8 for #584 added a stock "(Default)" label list item, which does not leverage the default labels provided in the config.

Expected result

I'd expect the config default label to be used.

Actual result

It is not used.

Other details

In the font plugin, instead of:

defaultText = '(' + editor.lang.common.optionDefault + ')';

this:
defaultText = (defaultLabel || '(' + editor.lang.common.optionDefault + ')');

would be more appropriate.

@jacekbogdanski jacekbogdanski self-assigned this Mar 5, 2019
@jacekbogdanski
Copy link
Member

To make it more clear, config.font_defaultLabel is respected when the editor is focused. However, it's not set on editor initialization.
label

For me, it also makes sense that the label should be set as default from the beginning of the editor initialization.

@blindspeed90 please also correct me if I misunderstood the issue.

@jacekbogdanski jacekbogdanski removed their assignment Mar 5, 2019
@jacekbogdanski jacekbogdanski added type:bug A bug. status:confirmed An issue confirmed by the development team. plugin:font The plugin which probably causes the issue. labels Mar 5, 2019
@blindspeed90
Copy link
Author

What you're describing is a separate bug that I kind of forgot about. It says "Font" and "Size" and then click in the editor or toolbar and those two values change. So yes I agree that those should have been set to the label then also.

@f1ames
Copy link
Contributor

f1ames commented Mar 7, 2019

@blindspeed90 To be on the same page, the issue you reported is that the font_defaultLabel config is not used and instead combo shows (Default) value?

@blindspeed90
Copy link
Author

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin:font The plugin which probably causes the issue. status:confirmed An issue confirmed by the development team. type:bug A bug.
Projects
None yet
Development

No branches or pull requests

3 participants