title: Show dialog Google-Apps-Script for a shared link
body: <p>The code below works on a document I am the owner of. When I share a link to it (with edit privileges), it does not respond for the editor. Any idea what is the cause of it?</p>
  
  <pre><code>function onEdit(event) {
  showDialog();  
  } // I also have this function listed under triggers for 'On edit' events
  
  function showDialog() { 
    var ui = HtmlService.createHtmlOutputFromFile('revRequestUI')
        .setSandboxMode(HtmlService.SandboxMode.IFRAME)
        .setWidth(700)
        .setHeight(320);
    SpreadsheetApp.getUi()
        .showModalDialog(ui, ' ');
  }
  </code></pre>