mangini / gdocs2md

Convert a Google Drive Document to the Markdown format, suitable for publishing.
Apache License 2.0
2.66k stars 620 forks source link

Script Editor not Script manager #36

Open MeghaStha opened 9 years ago

MeghaStha commented 9 years ago

You have mentioned in the readme.md to go to tools -> script manager but there is tools-> script editor not manager

amarinelli commented 9 years ago

Noticed this as well. I guess in the 2 years since this repo was last updated things have changed in Google Docs?

tfoote commented 7 years ago

From a related thread for spreadsheets you need to add an onOpen function to add a menu

http://stackoverflow.com/a/37109424/604099

theneilkirk commented 6 years ago

Thanks tfoote. Here's the code if anyone is interested:

function onOpen() {
  var ui = DocumentApp.getUi();
  ui.createMenu('Markdown')
      .addItem('Create', 'ConvertToMarkdown')
      .addToUi();
}
stephffuller commented 5 years ago

Thanks for this. Where would I put this function?

Thanks tfoote. Here's the code if anyone is interested:

function onOpen() {
  var ui = DocumentApp.getUi();
  ui.createMenu('Markdown')
      .addItem('Create', 'ConvertToMarkdown')
      .addToUi();
}
stephffuller commented 5 years ago

Found it. New script in same project. Works great. Thanks.