描述
通过 oEmbed 将来自媒体库或其他地方的 PDF 嵌入或作为块嵌入 object
标签或 Google Doc Viewer 作为后备。 URL 只需是世界可达的链接。
灵感来自 Embed PDF 和 RV Embed PDF。
非常感谢 Alex Kirk 使嵌入 PDF 查看器与新的块编辑器兼容。
在 GitHub 上开发。欢迎针对 develop
分支提出请求。
区块
该插件提供了1个区块.
评价
2023年1月14日
Simple is what we were looking for. Simple is what we got. Works great. Tku
2022年7月8日
Usefull
2021年10月31日
Does exactly what I want with no problems at all.
Many Thanks!
2021年3月16日
1 回复
le meilleur plugin pour PDF. tellement simple qu'aucun clients ne m'a demandé quoique se soit pour l'intégration Youhou
2021年1月21日
Worked extremely intuitively, very straightforward and user friendly.
2020年9月21日
1 回复
A really effective substitute for the other PDF embedder which seems to be over complicated. This one does all I need and allows printing and downloading without having to pay for the pro version. Thanks Andy, just what I needed.
贡献者及开发者
更新日志
2.3.0 / 2021-07-07
- 为 WordPress SVN 添加 @10up GitHub Actions 集成
2.2.0 / 2021-03-05
- 更新Toolbar到 ToolbarGroup 以及 ToolbarButton
- 添加对块对齐工具栏的有限支持
- 修复i18n在区块中
- 从
composer.json
中的make-pot
中排除/build
,不适用于最小化的 JS
2.1.2 / 2020-09-15
- 对 oembed 使用相同的块名称
- 添加额外的依赖到序列
2.1.1 / 2020-07-20
- 更新区块用于不推荐使用的项目和小错误
- 仅更新 PDF 的媒体选择器
2.1.0 / 2020-07-20
- 更新区块构建过程
- 添加标题和描述属性用于a11y
- 添加PDF svg 用于区块
2.0.5 / 2020-03-09
- GitHub 上插件结构的小更新
- 更新测试到
2.0.4 / 2019-10-05
- 修复了 PDF上传带有区块
2.0.3 / 2019-04-25
- 移动区块注册到它自身的函数和hook
- WPCS updates
2.0.2 / 2019-02-03
- 更新WordPress需求
2.0.1 / 2019-01-11
- 添加
composer.json
以及自动的创建带有composer 更新
的POT - 添加了对 WP 4.9.x 及以下版本的
register_block_type()
的检查
2.0.0 / 2018-12-20 🎂
- 在 Alex Kirk 的大力帮助下添加了适当的 PDF 块,非常感谢
1.6.1 / 2018-11-25
- 正确的初始化
load_plugin_textdomain()
1.6.0 / 2018-07-22
- 添加filter
embed_pdf_viewer_pdf_attributes
- 升级
readme.txt
到包括Requires PHP
头部 - 在PDF周围的链接中添加段落标签
1.5.0 / 2016-12-17
- 添加 CSS 以回退到 iOS 上的
iframe
,因为object
不可滚动:P
1.4.0
- 切换到使用
object
标签,使用iframe
作为后备显示方法
1.3.0
- 插入除了PDF以外的任何Media Library 现在都可以按照预期完成.
1.2.1
- 修复一些PHP警告
1.2.0
- 从媒体库插入 PDF 现在只需插入 oEmbed 的 URL
- 从任何源嵌入一个PDF
1.1.2
- 简化
instance()
只需要多一点点
1.1.1
- 重新命名实例变量到
$instance
并且让其隐私 - 更新DocBlocks
- 确保
$atts
是一个数组
1.1
- 当不是 PDF 时不返回媒体项目的错误修正,坏安迪 🙁
1.0.1
- 添加到DocBlocks
1.0
- 重构以将嵌入的代码放入到一个函数中
- 添加资产
0.1
- 初始化提交