friendofsvelte / tipex

An goto sytled text editor for SvelteKit; based on TipTap; tipex
https://tipex.pages.dev/
61 stars 1 forks source link

Link creation does not work #9

Closed bluepuma77 closed 9 months ago

bluepuma77 commented 9 months ago

When using the example from the docs "Insert a set of buttons" (link):

import {Utility} from "@friendofsvelte/tipex";
<Tipex htmlContent={htmlContent}>
    <svelte:fragment slot="utilities">
        <Utility/>
    </svelte:fragment>
</Tipex>

saving the link does not work, throws exception:

[Tipex.svelte:61:4](http://localhost:5173/node_modules/@friendofsvelte/tipex/dist/tipex/Tipex.svelte)
Uncaught TypeError: editorsParent is null
    onFocusChange Tipex.svelte:61
    instance4 Tipex.svelte:65

And how can the link button be left aligned with the other buttons?

Bishwas-py commented 9 months ago

@bluepuma77 I tried to recreate the scene: image But, I was unable to do so: image image image

It is working. Can you help me recreate it? I think the issue might be because of version, current version is: 0.0.1-act.3

bluepuma77 commented 9 months ago

Here is a Stackblitz link. I can select text and click link button, enter a link, but then neither return nor Save close the dialog.

bluepuma77 commented 9 months ago

Ah, never mind, it will only accept a valid URL, but there is no error indication or message. Sorry.