episerver / EPiServer.Labs.BlockEnhancements

Block enhancements for CMS UI.
26 stars 9 forks source link

Can not create/edit inline block that use custom ClientEditor #53

Closed tanvu-epi closed 4 years ago

tanvu-epi commented 4 years ago

I have a custom ClientEditor (rgba color picker using Vanilla picker plugin). But I can not Create/Edit the block that use this ClientEditor from page's ContentArea. Video demo

[ClientEditor(ClientEditingClass = "foundation/editors/ColorPicker")] public virtual string OverlayTextColor { get; set; }

This's my js file (text format because Github does not allow include js file) ColorPicker.txt

barteksekula commented 4 years ago

@tanvu-epi any errors in the console?

tanvu-epi commented 4 years ago

@tanvu-epi any errors in the console?

No, you can see in this video https://vimeo.com/408227259

barteksekula commented 4 years ago

does it work if you comment out the ClientEditor attribute from OverlayTextColor ?

tanvu-epi commented 4 years ago

does it work if you comment out the ClientEditor attribute from OverlayTextColor ?

Yes, it not work with any block use that custom ClientEditor, but only get error in Inline Edit/Create (not sure that's what error because console log doesn't show any bug).

barteksekula commented 4 years ago

ok, thanks for info, we will triage this soon