[WordPress] 外掛分享: Google Docs oEmbed

首頁外掛目錄 › Google Docs oEmbed
200+
安裝啟用
尚無評分
3442 天前
最後更新
問題解決
WordPress 4.0+ v1.0.10 上架:2015-06-20

內容簡介

此外掛會註冊一個 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

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.10) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Google Docs oEmbed」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon