You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! First of all, thank you for such a great library ❤️.
I would like to extend the link editor to ensure that external links created through it, which do not have a protocol, are treated as external links. Essentially, I want to prepend https:// to all URLs created in the link editor.
I believe this should be resolved by defining a custom plugin and using both the linkDialogState$ cell and the updateLink$ signal.
So far, this is the only working solution I've come up with, which relies on addComposerChild$ to add a React component that uses the linkDialogState$ cell and the updateLink$ signal to update the URLs, and honestly, it feels completely overcomplicated.
Do you have any advice on how to achieve this in a cleaner, more elegant way?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi! First of all, thank you for such a great library ❤️.
I would like to extend the link editor to ensure that external links created through it, which do not have a protocol, are treated as external links. Essentially, I want to prepend
https://
to all URLs created in the link editor.I believe this should be resolved by defining a custom plugin and using both the
linkDialogState$
cell and theupdateLink$
signal.So far, this is the only working solution I've come up with, which relies on
addComposerChild$
to add a React component that uses thelinkDialogState$
cell and theupdateLink$
signal to update the URLs, and honestly, it feels completely overcomplicated.Do you have any advice on how to achieve this in a cleaner, more elegant way?
Thanks a lot in advance!
Beta Was this translation helpful? Give feedback.
All reactions