Skip to main content

Giphy Plugin

Giphy plugin is pretty self explanatory - it allow the user to add GIFs!

Add A GIF to get the party started!

Usage#

/* Editor */
import { RicosEditor } from 'ricos-editor';
import { pluginGiphy } from 'wix-rich-content-plugin-giphy';
<RicosEditor plugins={[pluginGiphy(GiphyConfig)]} />;
/* Viewer */
import { RicosViewer } from 'ricos-viewer';
import { pluginGiphy } from 'wix-rich-content-plugin-giphy/viewer';
<RicosViewer plugins={[pluginGiphy(GiphyConfig)]} />;

Giphy Config API#

giphySdkApiKey#

giphySdkApiKey: string;

Get your Giphy API Key here

sizes#

Control GIF size

sizes?: {
desktop?: 'original' | 'downSizedSmall',
mobile?: 'original' | 'downSizedSmall'
}

Default value:

{
desktop: 'original',
mobile: 'original'
}

downSizedSmall Example#

This is the down-sized playground, enjoy