It would look like this:

```coffee
toggleQuotes = (editor) ->

editor.transact ->
  for cursor in editor.getCursors()
      position = cursor.getBufferPosition()
      toggleQuoteAtPosition(editor, position)
      cursor.setBufferPosition(position)
```