Title: Crocodoc
Author: MikesNameIsMike
Published: <strong>2012 年 3 月 16 日</strong>
Last modified: 2012 年 9 月 18 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/crocodoc.svg)

# Crocodoc

 作者：[MikesNameIsMike](https://profiles.wordpress.org/mikesnameismike/)

[下载](https://downloads.wordpress.org/plugin/crocodoc.zip)

 * [详情](https://cn.wordpress.org/plugins/crocodoc/#description)
 * [评价](https://cn.wordpress.org/plugins/crocodoc/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/crocodoc/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/crocodoc/#developers)

 [支持](https://wordpress.org/support/plugin/crocodoc/)

## 描述

New and Improved version 2.0!!
 This plug-in has not been functioning since Crocodoc
updated it’s API. I finally got around to updating the API calls and it is now working
as it should be.

-Display documents and images in your posts using the Crocodoc API.
 *Embed .PDF,.
DOC, .PPT, .PNG, and .JPG files into your posts. *Supports standard pages and posts
as well as custom post types.

The Crocodoc plugin will create a new input box on the edit/add post form of each
desired post type. The new input box allows for the inclusion of a document that
will be sent to Crocodoc for conversion when the post is published or updated. Through
the use of ShortCode, you can embed the document into your post.

The Crocodoc Plugin was developed by Michael Doss of www.mediahive.com, which is
in no way associated with www.crocodoc.com. This plugin is not officially supported
by Crocodoc. Neither Crocodoc, or the developer will respond to inquiries or be 
updating the plugin on a regular basis.

### Usage

The Crocodoc Plugin requires a valid Crocodoc API key. A free key can be obtained
from https://crocodoc.com/dashboard/. Crocodoc’s API is free for non-commercial 
use. For commercial applications, visit https://crocodoc.com/get-started/.

In the Crocodoc Setting page (‘Settings’ >> ‘Crocodoc’) enter the api key in the
provided field, and select the post types you want Crocodoc to work with. Crocodoc
can work with standard posts and pages as well as any defined custom post types.
Next, select the actions you want the plugin to take when you remove an attachment
from a post, or delete a post with a crocodoc attachment. Be sure to click the ‘
Save Changes’ button.

When creating a post, use the Crocodoc uploader to select a file. Once a file is
uploaded and selected, you will be given options to make the document downloadable
and/or editable. When the post is published, the file will be uploaded to Crocodoc
and associated with the given post.

In the content section of your post use the ShortCode [crocodoc] to display the 
attached document.
 The document will be embedded at the default width and height
of 500 x 700. Control the size of the document with parameters ‘width’ and ‘height’:[
crocodoc width=”300″ height=”500″]

## 屏幕截图

 * [[
 * The Crocodoc settings page.
 * [[
 * The Crocodoc Meta Box in a new post.
 * [[
 * The Crocodoc Meta Box with a selected file and options.
 * [[
 * A PDF being displayed on a blog post using Crocodoc.

## 安装

 1. Upload the folder `crocodoc` to the `/wp-content/plugins/` directory.
 2. Activate the plugin ‘Crocodoc’ through the ‘Plugins’ menu in WordPress.
 3. Select desired settings from the ‘Settings’ >> ‘Crocodoc’ screen.

## 常见问题

  Do I need a Crocodoc account to use this plugin?

Yes, you need a unique Crocodoc API key, which you can obtain for free from here:
https://crocodoc.com/

  I don’t see the Crocodoc section on my create/edit post screen.

Go to the Crocodoc Setting page (‘Settings’ >> ‘Crocodoc’) and select the post types
you want Crocodoc to work with. The Crocodoc metabox will only appear on post types
of which you select on this screen.

  How do I display an uploaded attachment in my post?

Use the ShortCode [crocodoc] in your post content to display the attached document.

Control the size of the document with parameters ‘width’ and ‘height’ : [crocodoc
width=”300″ height=”500″]

  Why does it take longer to publish a post with a crocodoc attachment?

The Crocodoc plugin must send your file to the crocodoc api, which converts your
file into html and stores it on a server, then sends a response back to your site,
with information the plugin uses to associate the uploaded document to your post.
This association cannot be made without waiting for the response from crocodoc.com.

  How do I add more then one document to a post?

Currently, the plugin only supports attaching one document per post.

  How do I delete a document from crocodoc?

You can delete documents from crocodoc by selecting the ‘delete from crocodoc’ option
in the settings page, and then deleting the post the attachment is associated with.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Crocodoc」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ MikesNameIsMike ](https://profiles.wordpress.org/mikesnameismike/)

[帮助将「Crocodoc」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/crocodoc)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/crocodoc/)，查看[SVN仓库](https://plugins.svn.wordpress.org/crocodoc/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/crocodoc/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/crocodoc/)。

## 更新日志

#### 1.0

 * Initial Release

#### 2.0

 * Update to use new Crocodoc API

## 额外信息

 *  版本 **2.0**
 *  最后更新：**14 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.2.1 或更高版本 **
 *  已测试的最高版本为 **3.2.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/crocodoc/)
 * 标签
 * [embed](https://cn.wordpress.org/plugins/tags/embed/)[upload](https://cn.wordpress.org/plugins/tags/upload/)
 *  [高级视图](https://cn.wordpress.org/plugins/crocodoc/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/crocodoc/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/crocodoc/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/crocodoc/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/crocodoc/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/crocodoc/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/crocodoc/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/crocodoc/reviews/)

## 贡献者

 *   [ MikesNameIsMike ](https://profiles.wordpress.org/mikesnameismike/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/crocodoc/)