/EDIT and html widget

I have a ‘R’ html widget

When I send html to it, with:
osc.udp://localhost:8080 /EDIT ss R '{"html":"test"}'
I can see the html field value change in the editor, but the widget remain blank
When using the editor to change the html field, the widget displays it correctly

This is happening on linux, commit
100f3a824ddc2f87852de8661b93bdd18394fcb6
but I also get the same behaviour at commit c85c2ad2c4618df4c535fc2ee816e8c8b93b7a03

also, is there a way to add several <p> elements with different color, in an HTML widget?

Bug fixed. Note that using /EDIT is cpu expensive, the widget is always entirely recreated when doing so. Using an osc listener in the html property would be a way to avoid that.

also, is there a way to add several <p> elements with different color, in an HTML widget?

Yes, using classes or inline css.

class or style attributes seem to be stripped from the <p> tags

Oh you’re right, attributes are disabled by default…

Oh you’re right, attributes are disabled by default…

ok. do you plan to change that or will it stay as is? thx

It will change in v1.

It will change in v1.

:cry:

Backported to v0.49.12, last v0 release !

Backported to v0.49.12

Thanks!

last v0 release !

don’t make me sad @jean-emmanuel :wink: