Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

iconifyit/jquery-cep-dropzone

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery-cep-dropzone

A jQuery plugin to dynamically add a drop zone (drag-n-drop) for Adobe Illustrator CEP panels.

Installation

<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="/path/to/js/jquery-cep-dropzon.js"></script>

Usage

$(function() {
    $('.cep-dropzone').cepDropZone({
        onSuccess : function(event, svg) {
            console.log('CEP Drag-n-Drop finished successfully (custom)', svg);
        },
        onError : function(event, error) {
            console.error('Oops! CEP Drag-n-Drop encountered an error. (custom)');
        }
    });
})

Styling the dropzone

The default CSS for the DropZone is inserted into the HTML <head/> via JS so that the entire plugin is self-contained in a single file. No external CSS file to link.

You can over-ride these styles with :

.dropozone {
    /* Your rules here */
}

.dropzone:hover {
    /* Your rules here */
}

That's it. Just two simple style selectors.

Watch the video

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.