Paste image plugin

Basic usage

Paste image plugin handle paste events, check if you have image files in your clipboard, then paste them into the editor as base64. It do nothing on text or HTML paste.

Read paste image plugin documentation

Try to paste some image!

For example, you can right click > Copy Image on the Trumbowyg logo, then paste it here.

The code


$('#editor').trumbowyg();
            

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>