The composer preview uses ember to render the cooked content. It looks like that error is coming from the ember rendering engine, which is probably confused by the DOM being changed by something else.
To avoid the issue, I suggest that you don’t remove() any nodes, and instead hide them using display:none; or something similar.
The composer preview is an unusual combination of ember rendering and custom ‘decorateCooked’ functions. It looks like this is a quirk of that implementation. We don’t have any plans to change the way it works at the moment, especially since the workaround is nice and simple.
@j.jaffeux Ho notato che hai passato questa funzione cleanUp a api.cleanupStream quando hai usato WidgetGlue.
Sto riscontrando l’errore nell’OP quando provo a scrivere nel composer dopo che il mio widget si è attaccato. In particolare, il div data-wrap originale è completamente scomparso dopo averlo selezionato con WidgetGlue.appendTo()…
EDIT: Risolto. Ho creato un nodo <div> sacrificale da far consumare al Widget, in modo da poter lasciare il div [wrap=dice] attivo.