# Giphy plugin | Trumbowyg

## Giphy plugin

### Basic usage

User can insert some GIFs from Giphy in Trumbowyg.

Read Giphy plugin documentation

## Insert some GIFs

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Possimus, aliquam, minima fugiat placeat provident optio nam reiciendis eius beatae quibusdam!

#### The code

    $('#editor')
    .trumbowyg({
        btns: [
            ['giphy']
        ],
        plugins: {
            giphy: {
                apiKey: 'dNhCbN6hrhpBMxXhIswM34wIR2UBpCns'
            }
        }
    });

### Setup

#### In head tag

#### At the end of body

    <!-- Import jQuery -->
    <script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script>window.jQuery || document.write('<script src="js/vendor/jquery-3.3.1.min.js"><\/script>')</script>