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

WIP: 8230231: font-family not updated in HTMLEditor #12

Open
wants to merge 1 commit into
base: master
from
Open
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -963,13 +963,13 @@ private void updateToolbarState(final boolean updateAlignment) {
if (fontFamilyValue != null) {
String fontFamilyStr = fontFamilyValue;

// stripping out apostrophe characters, which are appended to either
// stripping out apostrophe and quote characters, which are appended to either
// end of the font face name when the font face has one or more spaces.
if (fontFamilyStr.startsWith("'")) {
if (fontFamilyStr.startsWith("'") || fontFamilyStr.startsWith("\"")) {
fontFamilyStr = fontFamilyStr.substring(1);
}
if (fontFamilyStr.endsWith("'")) {
fontFamilyStr = fontFamilyStr.substring(0,fontFamilyStr.length() - 1);
if (fontFamilyStr.endsWith("'") || fontFamilyStr.endsWith("\"")) {
fontFamilyStr = fontFamilyStr.substring(0, fontFamilyStr.length() - 1);
}

Object selectedFont = fontFamilyComboBox.getValue();
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.