LinkPreview Plugin
Link Preview plugin allow the user to add a link preview. The Link Preview Plugin is implemented within the Link Plugin, and is activated once the user insert a link and press 'Enter' key. Link Preview with inline-embed: for this Usage, html plugin should also be installed.
#
Usage#
Link Preview Config APIenableEmbed
#
Allows to display provider embed if exist (can be true/false/[LinkPreviewProviders.Twitter, LinkPreviewProviders.Instagram,..]
Default value:
enableLinkPreview
#
Allows to display link preview if exist
Default value:
fetchData
#
A func that gets url and returns an object with title, image_url, description (optional) that related to the given url
Default value:
exposeEmbedButtons
#
https://ricos.js.org/docs/plugins_api/VideoPlugin#youtube-plugin#
NOTE: LinkPreviewProviders.youTube is gonna be deprecate. To use youtube plugin you should consume video plugin and expose youtube button. See docs hereWhich embed buttons will display - array with LinkPreviewProvider types [LinkPreviewProviders.Instagram, LinkPreviewProviders.Twitter, ...]. For provide buttons type you should import LinkPreviewProvider.
Default value: