diff --git a/ts/components/ColorPicker.svelte b/ts/components/ColorPicker.svelte index 277b74eae..4430452c9 100644 --- a/ts/components/ColorPicker.svelte +++ b/ts/components/ColorPicker.svelte @@ -5,20 +5,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html @@ -38,7 +35,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html wrapWithForecolor(getForecolor())} + on:click={wrapWithForecolor} on:mount={createShortcut}> {@html squareFillIcon} diff --git a/ts/editor/EditorToolbar.svelte b/ts/editor/EditorToolbar.svelte index 5ed197d9b..45c9403ef 100644 --- a/ts/editor/EditorToolbar.svelte +++ b/ts/editor/EditorToolbar.svelte @@ -58,5 +58,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html + diff --git a/ts/editor/toolbar.ts b/ts/editor/toolbar.ts index 8cb22a112..150a08c9f 100644 --- a/ts/editor/toolbar.ts +++ b/ts/editor/toolbar.ts @@ -33,5 +33,13 @@ export function initToolbar(i18n: Promise): Promise { } /* Exports for editor */ -// @ts-expect-error insufficient typing of svelte modules -export { enableButtons, disableButtons, updateActiveButtons, clearActiveButtons } from "./EditorToolbar.svelte"; +export { + // @ts-expect-error insufficient typing of svelte modules + enableButtons, + // @ts-expect-error insufficient typing of svelte modules + disableButtons, + // @ts-expect-error insufficient typing of svelte modules + updateActiveButtons, + // @ts-expect-error insufficient typing of svelte modules + clearActiveButtons, +} from "./EditorToolbar.svelte";