Is it possible to use this plugin to add data attributes to an image block? According to the plugin documentation, I should be able to “extend the predefined list of block names by hooking into the?mypreview.blockDataAttributeAllowedBlocks
?filter provided by the plugin.”
I’m not sure how to do this, would you be able to provide some help please? Thank you.
]]>Hi there
I just took a look at the SVN to see about adding support for other blocks myself,
I can see /dist but the JavaScript source doesn’t appear to be present.
Is this available anywhere?
Kind regards
– Perry
Unfortunately, this problem occurs again now: As soon as the plug-in is active, the Gutenberg editor displays the following message after clicking in a standard WordPress block (for example paragraph) and clicking again outside the block: “An error has occurred in this block and a preview is not possible”.
After reloading the page, everything is displayed correctly again.
If the plug-in is deactivated, the error no longer occurs.
Unfortunately, I can’t check at the moment whether it is only related to the updater to WordPress 5.7. I only noticed it after the update.
This PlugIn is so essential, it would be great if it is continuously developed.
Hi!
When I’m adding data attribute with a value it works well, but when I leave the value empty, it’s not added. So, can I add just the attribute somehow?
Example:
data-scroll data-scroll-speed=6
First off this is a super cool plugin and a great idea. Is it possible to add the Data Attribute options to other blocks? Even a block registered by another plugin?
That would unlock a world of awesome use cases.
Thank you!
]]>I have to add a data attribute to one my of blocks and I’ve found this plugin developed by you.
Unfortunately, the plugin doesn’t allow me to type slash (/) or backslash (\) in the Value field.
I know this is blocked with Javascript but I wasn’t able to figure out which line of the code is causing this.
Can anyone assist me, please? I really need this.
Thank you!
]]>Thank you for putting in time developing the plugin!
I am getting a
TypeError: Cannot read property 'name' of null
error when editing random blocks with no data attribute on them. The error will break the block edit functionality and not allow me to edit the block until page reload.
Here is the part of the code (uglified) that throws the error:
return Object(y.createElement)(m, null, Object(y.createElement)(f, n), r && Object(y.createElement)(m, null, p()(l, o.name) && Object(y.createElement)(w, null, Object(y.createElement)(S, {
title: j("Data Attributes", "block-data-attribute"),
initialOpen: !1
}
]]>