Closed bluepuma77 closed 3 months ago
Maybe add an if around this:
if
Uncaught TypeError: editorsParent is null onFocusChange Tipex.svelte:61 instance4 Tipex.svelte:64
I am currently trying to get htmlContent to reflect the current (changed) content in Tipex, but that does not seem to work:
htmlContent
<Tipex bind:htmlContent={htmlContent} style="margin: 1rem; margin-bottom: 0rem;" class="h-[70vh] border border-neutral-200 dark:border-neutral-700 w-full" > <svelte:fragment slot="utilities"> <Utility /> {#if saveFunction} <button type="button" class="tipex-action-button w-12tipex-click-effect" on:click={saveFunction(htmlContent)}>Save</button> {/if} </svelte:fragment> </Tipex>
Try this $tipexEditor.getHTML() to get html.
$tipexEditor.getHTML()
FYI: $tipexEditor.getText() -> to get plain text. $tipexEditor.getJson() -> to get content data in json.
$tipexEditor.getText()
$tipexEditor.getJson()
Closing it for now. Feel free to re-ask or open.
Maybe add an
if
around this:I am currently trying to get
htmlContent
to reflect the current (changed) content in Tipex, but that does not seem to work: