JSDraw Structure Editor

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

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

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