跳到内容

Draft from Google Docs

v1.2

davidfcarr · 2022年6月2日 上架

Simplify the process of bringing Google Docs content into WordPress.

正在使用
20+
评分
暂无
累计下载
7,892
最近更新
2024年4月7日
需要 WordPress 5.0+已测试到 6.5.15PHP 5.6+

贡献者

If you use Google Docs to edit and revise content with a team of people, you can now create a draft blog post or page in WordPress without cluttering your web content with inappropriate HTML and inline styles. The tool extracts images and allows you to download them or import them directly into WordPress.

This simplifies what would otherwise be a multistep process of

  • Either pasting into the rich text editor or cleaning up the HTML or pasting into code view and recreating styling
  • Downloading images from Google Docs, one at a time
  • Uploading images into WordPress

Originally created for use by the Insights Newsroom team at Similarweb, this plugin allows editorial teams to collaborate on the writing and editing of a document, including image placement, in Google Docs, quickly turn that content into a draft blog post, and then tweak as necessary in the blog editor.

Works with either the block editor or the classic editor.

For the block editor, basic block metadata is added for paragraphs, headings, unordered lists, and images. Any other content will be displayed as classic blocks, with the option to use the Convert to Blocks function of the editor.

The shortcode [draft_from_google_docs] is available for including this functionality on a public web page. In that case, the content is not imported directly into WordPress but displayed in a format that allows it to be copied and pasted into the WordPress editor. In that case, images associated with the document are displayed in a format that allows you to download them into your computer and upload them one by one into your post or page. Including the download_ok=”1″ attribute within the shortcode means the images will be downloaded into the local WordPress instance. Otherwise, the download links will point to the Google Cloud url for those images.

Plugin Page www.rsvpmaker.com/draft-from-google-docs/

Thank you to Miroslav Mitev for a code sample on how to download from a url to create WordPress attachments.

Butterfly image Image by JamesDeMers from Pixabay

Credits

RSVPMaker
Copyright (C) 2022 David F. Carr

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

See the GNU General Public License at <http://www.gnu.org/licenses/gpl-2.0.html>.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums