diva-e-aem / xwalk-boilerplate

MIT License
0 stars 2 forks source link

Universal Editor: decorate block method doesn't call after block content update #11

Open samuelecalamita opened 2 months ago

samuelecalamita commented 2 months ago

Context: In the Universal Editor, we have a block where we rewrite the markup using JavaScript/Lit-html.

Issue: When we update the content using the Universal Editor, the block markup is updated alongside the content. However, the loadBlock method in editor-support.ts does not function as expected. This issue occurs because the loadBlock method was modified to receive a section as a parameter instead of the block itself.

Possible optimizations/questions:

mrozati commented 1 month ago

update after alignment with @ifahrentholz and @samuelecalamita :