gdocs2md icon indicating copy to clipboard operation
gdocs2md copied to clipboard

Script Editor not Script manager

Open MeghaStha opened this issue 10 years ago • 5 comments

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

MeghaStha avatar Jun 15 '15 08:06 MeghaStha

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

amarinelli avatar Jul 23 '15 18:07 amarinelli

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

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

tfoote avatar Dec 21 '16 22:12 tfoote

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

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

theneilkirk avatar Sep 05 '18 03:09 theneilkirk

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 avatar Jul 31 '19 16:07 stephffuller

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

stephffuller avatar Jul 31 '19 18:07 stephffuller