Skip to content

Commit

Permalink
Remove redundant docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinerpirat committed Feb 19, 2023
1 parent 268e3d0 commit 89601a1
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/ts/src/editor/components/TooltipButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<a>` 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}
-->
<script lang="ts">
Expand Down

0 comments on commit 89601a1

Please sign in to comment.