@milkdown/components/link-tooltip default labels #1349
-
How can I change the default labels for @milkdown/components/link-tooltip? |
Beta Was this translation helpful? Give feedback.
Answered by
Saul-Mirone
May 31, 2024
Replies: 1 comment 1 reply
-
import { html } from 'atomico'
ctx.update(linkTooltipConfig.key, (config) => {
return {
...config,
confirmButton: html`your own label`
}
}); The default config is here: https://github.com/Milkdown/milkdown/blob/main/packages/components/src/link-tooltip/slices.ts#L41 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Elgorm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The default config is here: https://github.com/Milkdown/milkdown/blob/main/packages/components/src/link-tooltip/slices.ts#L41