From 89601a1178a57b12402f920a464afe6dc82bbb9e Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Sun, 19 Feb 2023 23:36:59 +0100 Subject: [PATCH] Remove redundant docstring --- src/ts/src/editor/components/TooltipButton.svelte | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/ts/src/editor/components/TooltipButton.svelte b/src/ts/src/editor/components/TooltipButton.svelte index 13fdbaa..3196d37 100644 --- a/src/ts/src/editor/components/TooltipButton.svelte +++ b/src/ts/src/editor/components/TooltipButton.svelte @@ -7,20 +7,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html A button with shortcut that uses a Surrounder (class imported from "anki/surround") to wrap selected content with `` tags and changes its state depending on the current selection. -Components such as this one can be appended to the editor toolbar the following way: - -@example -```js -import TooltipButton from "./TooltipButton.svelte" - -require("anki/NoteEditor").lifecycle.onMount(({ toolbar }) => { - toolbar.templateButtons.append({ - component: TooltipButton, - props: { keyCombination: "Control+T" }, // optional - id: "tooltipButton", // optional - }); -}); -``` +Components such as this one can be appended to the editor toolbar (@see index.ts) @see {@link https://github.com/ankitects/anki/tree/main/ts/sveltelib/dynamic-slotting.ts} -->