Block editor custom view? v14.0.0-rc3
# help-with-umbraco
j
In Umbraco 13 I was able to point the *"Custom View" *of the block inside the block editor to the
.html
file to get the nice preview of the widget in a block grid. In v14 I assume that since web components are used, "Custom View" field should be pointed to one of them. I stumbled upon an extension type in an
umbraco-package.json
called
bockEditorCustomView
(I assume it's a typo and should be
blockEditorCustomView
?), I've tried to use it and point to JS file with web component, and then pick it from the "Custom View" option in backoffice. However, there are only just a list of all files/folders shown and no block editor custom view that I defined in manifest. How can I acheve this in v14? https://cdn.discordapp.com/attachments/1240303635796332556/1240303636181946420/image.png?ex=66461246&is=6644c0c6&hm=b5c3e626abef6cb1721814dd2f926e2bff5f4529d696c8c50db048e684c87319&
r
It's currently not configured to work unfortunately! See this other conversation... https://discord.com/channels/869656431308189746/1227916075144974397/1227947538737397780
BUT then you'll hit another issue
Looks like we may be getting a fix in rc4 - https://github.com/umbraco/Umbraco.CMS.Backoffice/pull/1831
j
That's cool, I'll have a dig around. I found a temporary workaround with accessing the block grid elements by having them all with columns defined explicitly, then I can access them through e.g. content delivery API and it's not throwing exception 🙂
a
@rickbutterfield what file are you selecting in the custom view field? I'm guessing the output js file?
r
That field will be going, as you’ll have to select which blocks are enabled on the extension manifest
a
oh, I see
thanks
139 Views