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

Add default fonts and a fix for styling #2584

Merged
merged 1 commit into from Dec 6, 2017

Conversation

lqez
Copy link
Member

@lqez lqez commented Dec 4, 2017

What does this PR do?

  • If a page has a global style like * { font-family: blahblah } then it affects the fontname dropdown.
  • This patch adds default fonts into the dropdown even settings does not have them.
  • I made Editor.js to use similar function editor.fontStyling to prevent creating empty <span>. Currently, summernote creates an empty <span> with an empty range selection.

Where should the reviewer start?

  • start on the src/js/base/module/Editor.js

How should this be manually tested?

  • Set global font-family style and click the fontname dropdown.

What are the relevant tickets?

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 76.941% when pulling 74e4fe6 on feature/add-default-font into bbaffe7 on develop.

@hackerwins hackerwins added this to the v0.8.9 milestone Dec 5, 2017
@lqez lqez changed the title Add default fonts and a fix for styling [WIP] Add default fonts and a fix for styling Dec 5, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 76.951% when pulling 8ccac61 on feature/add-default-font into bbaffe7 on develop.

@hackerwins hackerwins merged commit 732b79d into develop Dec 6, 2017
@hackerwins hackerwins deleted the feature/add-default-font branch December 6, 2017 01:27
@hackerwins
Copy link
Member

@lqez Thanks for contribution.

@lqez lqez changed the title [WIP] Add default fonts and a fix for styling Add default fonts and a fix for styling Dec 6, 2017
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

Successfully merging this pull request may close these issues.

None yet

3 participants