內容簡介
此外掛會註冊一個 oEmbed 處理程式,並將 Google 文件加入白名單,允許所有有發布文章/頁面權限的使用者嵌入文件、試算表和簡報。
使用方法
將 Google 文件嵌入文章或頁面中的方法:
1. 在 Google Drive 上開啟文件
2. 在檔案選單下選取「公開發行至網路」
3. 複製連結,貼到內容區塊。請確認 URL 為獨立一行,並非超連結(瀏覽文章時可點選)。
例如:
https://docs.google.com/document/d/abcdefghij/pub
另一種嵌入方式是將 URL 包裝在 短碼內:
https://docs.google.com/document/d/abcdefghij/pub
外掛標籤
開發者團隊
原文外掛簡介
Registers an oEmbed handler for Google Docs and adds it to the whitelist, allowing all users who can write posts/pages to embed documents, spreadsheets and presentations.
Usage
To embed a Google Doc into a post or page:
1. Open the document on Google Drive
2. Select the Publish to the Web under the File menu
3. Then copy the link and paste it into the content area. Make sure the URL is on its own line and not hyperlinked (clickable when viewing the post)
For example:
https://docs.google.com/document/d/abcdefghij/pub
Another option is to wrap the URL in the shortcode:
https://docs.google.com/document/d/abcdefghij/pub
