Pass content directly instead of its writable container
This commit is contained in:
parent
30c6bd58c9
commit
3eb8a6ce9d
@ -39,11 +39,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
const description = getContext<Readable<string>>(descriptionKey);
|
||||
$: descriptionCSSValue = `"${$description}"`;
|
||||
|
||||
export let content: Writable<string>;
|
||||
export let content: string;
|
||||
</script>
|
||||
|
||||
<anki-editable
|
||||
class:empty={!$content}
|
||||
class:empty={!content}
|
||||
contenteditable="true"
|
||||
use:resolve
|
||||
use:setupFocusHandling
|
||||
|
@ -148,7 +148,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
mirrors: [mirror],
|
||||
inputHandlers: [setupInputHandler, setupGlobalInputHandler],
|
||||
api: api.editable,
|
||||
content,
|
||||
content: $content,
|
||||
},
|
||||
context: allContexts,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user