回答編集履歴
1
rev
answer
CHANGED
@@ -3,8 +3,7 @@
|
|
3
3
|
あらかじめ
|
4
4
|
```javascript
|
5
5
|
function copyTextFromDocument(id) {
|
6
|
-
const doc = DocumentApp.openById(id);
|
7
|
-
return
|
6
|
+
return DocumentApp.openById(id).getBody().getText().replace(/\n/g,"<br>\n");
|
8
7
|
}
|
9
8
|
|
10
9
|
```
|