block-xray-attributes icon indicating copy to clipboard operation
block-xray-attributes copied to clipboard

WordPress Gutenberg plugin to display the attributes for the currently selected block in the Document sidebar.

Results 10 block-xray-attributes issues
Sort by recently updated
recently updated
newest added

![image](https://user-images.githubusercontent.com/5194588/165991340-226d7793-fb55-462f-ad43-22dc4a70937c.png)

documentation

I think we could use the [Gutenberg Popover component](https://github.com/WordPress/gutenberg/tree/57da3c91a166d917a2a9de98177be9c3dfe07ee5/packages/components/src/popover) ([Popover Demo](https://wordpress.github.io/gutenberg/?path=/story/components-popover--default)) to offer an optional large window with the attributes displayed. Perhaps this would be triggered by a button.

enhancement

Along with displaying the attributes in the browser console on click (see #5), the click could set the attributes to a global variable. Similar to this built in browser functionality,...

enhancement

Sometimes it is helpful to have the attributes available in the console for expanding and collapsing sections. Perhaps, we want to add a button that sends the attributes to and...

enhancement

This PR works for WordPress 6.6 but is not backwards compatible with older versions of WordPress core (e.g. WordPress 6.5) See #31

I'm seeing the following in the browser console. > wp.editPost.PluginDocumentSettingPanel is deprecated since version 6.6. Please use wp.editor.PluginDocumentSettingPanel instead. ![image](https://github.com/user-attachments/assets/abcb7641-5f40-4f29-a63a-3a508306edca) Reminder, we'll need to do this in a backwards compatible...

enhancement

We're seeing the following warning in the browser console > PluginDocumentSettingPanel requires a name property. Error Component Stack ![Image](https://github.com/user-attachments/assets/3929fee8-f30a-4d75-bab5-2c4f380f3b72) ## Proposed Solution Update https://github.com/salcode/block-xray-attributes/blob/516c3f71a4f48a8f75295150dd0df6355cc31551/src/components/BlockXrayPanel/index.js#L13-L18 to ``` ``` i.e. add `name="block-xray-attributes"`...

It would save a click to have the `Block X-ray` details rendered in the `Block` sidebar (rather than the `Post`/`Page` sidebar where it is currently rendered). In addition to my...

See - https://developer.wordpress.org/plugins/wordpress-org/previews-and-blueprints/ - https://www.tannerrecord.com/using-the-wordpress-playground-for-plugin-demos/