diff --git a/src/index.ts b/src/index.ts index a6a502d..9c76c20 100644 --- a/src/index.ts +++ b/src/index.ts @@ -313,7 +313,7 @@ function applyFromToolbar(event: Event) { if (!(target instanceof Element)) return const mdButton = target.closest('[data-md-button]') if (!mdButton || mdButton.closest('markdown-toolbar') !== currentTarget) return - const mdButtonStyle = target.getAttribute('data-md-button') + const mdButtonStyle = mdButton.getAttribute('data-md-button') const style = manualStyles[mdButtonStyle as keyof typeof manualStyles] if (!style) return event.preventDefault()
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: