Skip to content

Commit

Permalink
fix: set font family doesn't effect (#145)
Browse files Browse the repository at this point in the history
* fix: change font doesn't effect

* refactor: remove repeat class
  • Loading branch information
zzxming authored Dec 6, 2024
1 parent d6d280f commit fcdd561
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions packages/fluent-editor/src/assets/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,3 @@

// 图片预览
@include imagePreview;

@include fontFamilyContent;
2 changes: 1 addition & 1 deletion packages/fluent-editor/src/attributors/font-style.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Quill from 'quill'

const Parchment = Quill.import('parchment')
export const FontStyle = new Parchment.StyleAttributor('font', 'font-family', {
export const FontStyle = new Parchment.ClassAttributor('font', 'ql-font', {
scope: Parchment.Scope.INLINE,
})

0 comments on commit fcdd561

Please sign in to comment.