Skip to content

Commit

Permalink
fix(NcRichText): show links title for desktop client
Browse files Browse the repository at this point in the history
Signed-off-by: DorraJaouad <[email protected]>
  • Loading branch information
DorraJaouad committed Oct 2, 2024
1 parent 5329142 commit 4cc7bbc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/NcRichText/NcRichText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ export default {
type: Boolean,
default: true,
},
showLinkTooltip: {
type: Boolean,
default: false,
},
},
emits: ['interact:todo'],

Expand Down Expand Up @@ -501,6 +505,10 @@ export default {
},
}, children)
}

if (this.showLinkTooltip) {
attrs.attrs.title = attrs.attrs.href
}
}

return h(tag, attrs, children)
Expand Down

0 comments on commit 4cc7bbc

Please sign in to comment.