mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
Pass content directly instead of its writable container
This commit is contained in:
parent
30c6bd58c9
commit
3eb8a6ce9d
2 changed files with 3 additions and 3 deletions
|
@ -39,11 +39,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
const description = getContext<Readable<string>>(descriptionKey);
|
const description = getContext<Readable<string>>(descriptionKey);
|
||||||
$: descriptionCSSValue = `"${$description}"`;
|
$: descriptionCSSValue = `"${$description}"`;
|
||||||
|
|
||||||
export let content: Writable<string>;
|
export let content: string;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<anki-editable
|
<anki-editable
|
||||||
class:empty={!$content}
|
class:empty={!content}
|
||||||
contenteditable="true"
|
contenteditable="true"
|
||||||
use:resolve
|
use:resolve
|
||||||
use:setupFocusHandling
|
use:setupFocusHandling
|
||||||
|
|
|
@ -148,7 +148,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
mirrors: [mirror],
|
mirrors: [mirror],
|
||||||
inputHandlers: [setupInputHandler, setupGlobalInputHandler],
|
inputHandlers: [setupInputHandler, setupGlobalInputHandler],
|
||||||
api: api.editable,
|
api: api.editable,
|
||||||
content,
|
content: $content,
|
||||||
},
|
},
|
||||||
context: allContexts,
|
context: allContexts,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue