Skip to content

Releases: Ya19880104/ys-editor-scope-wrapper

Auto-detect candidate classes + i18n (English source + zh_TW)

Choose a tag to compare

@Ya19880104 Ya19880104 released this 26 May 11:21

First public release.

Highlights

  • Auto-detect candidate scope classes from your existing posts
    • GreenShift Style Manager dynamicGClasses[0] (root wrapper)
    • First selector inside wp:html <style> blocks
    • WordPress core alignfull / alignwide
  • Checkbox UI to enable/disable detected classes — no manual typing needed
  • Custom textarea for classes the scanner missed (advanced)
  • i18n: English source strings + lang/ys-editor-scope-wrapper-zh_TW.po
  • PRG (Post-Redirect-Get) pattern for save handler — single notice, refresh-safe
  • save_post hook auto-clears detection transient so newly added classes show up

Install

  1. Download `ys-editor-scope-wrapper.zip` below
  2. WordPress admin → Plugins → Add New → Upload Plugin → choose the zip
  3. Activate
  4. Settings → YS Editor Scope to configure

Use case

When your page CSS is written as `.scope-class .xxx { ... }` (common with GreenShift / GL Page Builder), the frontend page builder injects `.scope-class` on the outer wrapper, but the Block Editor doesn't replicate that — so all wrapper-scoped CSS becomes dead in the editor preview. This plugin closes that gap.

Requirements

  • WordPress 6.0+
  • PHP 7.4+

License

GPL-2.0-or-later