parttio / tinymce-for-flow

TinyMCE wrapper for Vaadin 10+
Other
8 stars 6 forks source link

Value is not updated properly for detached editor #26

Closed mstahv closed 6 months ago

mstahv commented 6 months ago

This don't work:

    TinyMce tinyMce = new TinyMce();

    Button b = new Button("Replace value while detached");
    b.addClickListener(e -> {
        tinyMce.removeFromParent();
        tinyMce.setValue("Now: " + LocalDateTime.now());
        add(tinyMce);
    });

    add(b, tinyMce);
mstahv commented 6 months ago

Similar fix is in v23 branch