= window.prompt('Enter artwork detail URL (must be WikiArt or MET)');
      if (url) {
        addArtworkFromExternalArtworkUrl(url, g_editorState.publishDate, function(artwork) {
          //hideEditor();
          showEditor({
            action: 'edit',
            id: artwork.id,
            artwork: artwork
          });
        });
      }
    });

    $editorsave.click(function() {
      if (g_editorState.action == 'add') {
        var artwork = JSON.parse($json.val());
        artwork.publishDate = 