Skip to content

Commit

Permalink
fix: toolbar-tip text doesn't display (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzxming authored Jan 2, 2025
1 parent c64e61e commit a07aad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fluent-editor/src/toolbar/toolbar-tip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function generateToolbarTip(QuillToolbarTip: Constructor) {
'lineheight',
].reduce((map, name) => {
map[name] = {
onShow() {
onShow: () => {
return this.quill.getLangText(name)
},
}
Expand All @@ -69,7 +69,7 @@ export function generateToolbarTip(QuillToolbarTip: Constructor) {
'direction',
].reduce((map, name) => {
map[name] = {
onShow(target: HTMLElement, value: string) {
onShow: (target: HTMLElement, value: string) => {
if (name === 'direction') {
value = target.classList.contains('ql-active') ? 'rtl' : 'ltr'
}
Expand Down

0 comments on commit a07aad5

Please sign in to comment.