JSDraw Structure Editor

Code example how to put widget to the page and get SMILES or MOL file for the structure
        var editor = $('#editorContainer').jchempaint({
            width: 900,
            height: 520
        }).data('jchempaint');

        $('#getSMILES').click(function () {
                    $('#editorContainer').showMessage('SMILES', editor.smiles());
        });

        $('#getMol').click(function () {
            $('#editorContainer').showMessage('MOL FIle', editor.molecule());
        });