Changeset 3452163
- Timestamp:
- 02/02/2026 02:11:00 PM (8 weeks ago)
- Location:
- editor-block-outline/trunk
- Files:
-
- 8 edited
-
README.md (modified) (previous)
-
controls/block-class-option.js (modified) (1 diff)
-
controls/block-data-position.js (modified) (1 diff)
-
controls/block-name-option.js (modified) (1 diff)
-
controls/enable-block-padding-option.js (modified) (1 diff)
-
outline.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
utils.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
editor-block-outline/trunk/controls/block-class-option.js
r3069703 r3452163 24 24 25 25 // update editor ui 26 jQuery('body').attr('show-class-name', value); 26 const body = getDocumentBody(); 27 body.attr('show-class-name', value); 27 28 28 // Update editor UI for WP6.2+ (Iframe Editor)29 jQuery('iframe.editor-canvas__iframe').contents().find('body').attr('show-class-name', value);30 31 29 // update meta 32 30 this.debounce(() => { -
editor-block-outline/trunk/controls/block-data-position.js
r3069703 r3452163 38 38 39 39 // update editor ui 40 jQuery('body').attr('block-data-position', key); 41 42 // Update editor UI for WP6.2+ (Iframe Editor) 43 jQuery('iframe.editor-canvas__iframe').contents().find('body').attr('block-data-position', key); 40 const body = getDocumentBody(); 41 body.attr('block-data-position', key); 44 42 45 43 // update meta -
editor-block-outline/trunk/controls/block-name-option.js
r3069703 r3452163 23 23 }); 24 24 25 // update editor ui 26 jQuery('body').attr('show-block-name', value); 27 28 // Update editor UI for WP6.2+ (Iframe Editor) 29 jQuery('iframe.editor-canvas__iframe').contents().find('body').attr('show-block-name', value); 25 // Update Editor UI 26 const body = getDocumentBody(); 27 body.attr('show-block-name', value); 30 28 31 29 // update meta -
editor-block-outline/trunk/controls/enable-block-padding-option.js
r3069703 r3452163 24 24 25 25 // update editor ui 26 jQuery('body').attr('enable-outline-padding', value); 27 28 // Update editor UI for WP6.2+ (Iframe Editor) 29 jQuery('iframe.editor-canvas__iframe').contents().find('body').attr('enable-outline-padding', value); 26 const body = getDocumentBody(); 27 body.attr('enable-outline-padding', value); 30 28 31 29 // update meta -
editor-block-outline/trunk/outline.php
r3153389 r3452163 3 3 Plugin Name: Editor Block Outline 4 4 Description: Add outline around Gutenberg blocks while editing 5 Version: 1.4. 25 Version: 1.4.3 6 6 Author: Kalimah Apps 7 7 Author URI: https://github.com/kalimahapps … … 25 25 public function __construct() { 26 26 add_action( 'init', array( $this, 'register_user_meta' ) ); 27 add_action( 'enqueue_block_ editor_assets', array( $this, 'add_editor_assets' ) );28 add_action( 'enqueue_block_ editor_assets', array( $this, 'add_init_scripts' ) );27 add_action( 'enqueue_block_assets', array( $this, 'add_editor_assets' ) ); 28 add_action( 'enqueue_block_assets', array( $this, 'add_init_scripts' ) ); 29 29 } 30 30 -
editor-block-outline/trunk/readme.txt
r3153389 r3452163 3 3 Tags: gutenberg,outline,editor,blocks,layout 4 4 Requires at least: 5.0 5 Tested up to: 6. 56 Stable tag: 1.4. 25 Tested up to: 6.9 6 Stable tag: 1.4.3 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 39 39 40 40 == Changelog == 41 = 1.4.3 = 42 - Update to make it compatible with WordPress 6.9 41 43 42 44 = 1.4.1 = -
editor-block-outline/trunk/utils.js
r3069703 r3452163 6 6 */ 7 7 const getDocumentRoot = () => { 8 const iframeRoot = document.querySelector('iframe .editor-canvas__iframe')?.contentDocument.documentElement;8 const iframeRoot = document.querySelector('iframe[name="editor-canvas"]')?.contentDocument.documentElement; 9 9 return iframeRoot ?? document.documentElement; 10 10 } 11 11 12 12 const getDocumentBody = () => { 13 const iframeBody = jQuery('iframe .editor-canvas__iframe').contents().find('body');13 const iframeBody = jQuery('iframe[name="editor-canvas"]').contents().find('body'); 14 14 return iframeBody.length ? iframeBody : jQuery('body'); 15 15 }
Note: See TracChangeset
for help on using the changeset viewer.