跳到内容

Trex Dual Preview

v2.5.0

trex2026 · 2026年3月24日 上架

Add a one-click PC & smartphone simultaneous preview to the Gutenberg block editor.

正在使用
10 以下
评分
暂无
累计下载
381
最近更新
2026年3月25日
需要 WordPress 6.0+已测试到 6.9.12PHP 8.0+

贡献者

截图

The trigger button in the editor sidebar.
The trigger button in the editor sidebar.
Modal showing PC and SP previews simultaneously (with sliders).
Modal showing PC and SP previews simultaneously (with sliders).
Full-screen dual preview opened in a new tab.
Full-screen dual preview opened in a new tab.

Trex Dual Preview adds a one-click PC & smartphone simultaneous preview to the WordPress block editor (Gutenberg) sidebar.

Features

  • Open a modal with PC and smartphone previews side by side with one click
  • Compare PC (1200-1920px) and SP (320-768px) viewports in real time
  • Adjust display width instantly using sliders
  • Open a full-screen dual preview in a new tab
  • Automatically hides the WordPress admin bar and theme-specific toolbars (e.g. Cocoon)
  • Responsive layout that adapts to window resize via ResizeObserver

Security

  • Full-screen preview access is protected by wp_verify_nonce() and current_user_can()
  • iframes use the sandbox attribute to restrict unnecessary permissions
  • All input is sanitized and escaped (absint, sanitize_text_field, esc_url, etc.)

Plums

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

导航

说明

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

© 2026 Plums