mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Add tooltip for WYSIWYG callout link (#16967)
This commit is contained in:
@@ -244,7 +244,7 @@ export class MarkdownToolbarComponent extends AngularDisposable {
|
|||||||
let linkUrl = notebookLink.getLinkUrl();
|
let linkUrl = notebookLink.getLinkUrl();
|
||||||
// Otherwise, re-focus on the output element, and insert the link directly.
|
// Otherwise, re-focus on the output element, and insert the link directly.
|
||||||
this.output?.nativeElement?.focus();
|
this.output?.nativeElement?.focus();
|
||||||
document.execCommand('insertHTML', false, `<a href="${escape(linkUrl)}" is-absolute=${notebookLink.isAbsolutePath}>${escape(linkCalloutResult?.insertUnescapedLinkLabel)}</a>`);
|
document.execCommand('insertHTML', false, `<a href="${escape(linkUrl)}" title="${escape(linkUrl)}" is-absolute=${notebookLink.isAbsolutePath}>${escape(linkCalloutResult?.insertUnescapedLinkLabel)}</a>`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if (type === MarkdownButtonType.IMAGE_PREVIEW) {
|
} else if (type === MarkdownButtonType.IMAGE_PREVIEW) {
|
||||||
|
|||||||
Reference in New Issue
Block a user