Skip to content

@milkdown/components/link-tooltip default labels #1349

Closed Answered by Saul-Mirone
Elgorm asked this question in Q&A
Discussion options

You must be logged in to vote
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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Elgorm
Comment options

Answer selected by Elgorm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants