Can not reset value

As Onur Idrisoglu recommended I tried out HugeRte.
One thing that I did not get to work is to reset a value on the HugeRte.
Szenario:

  • I programmatically set a value like “<h2>Hello Friends</h2>”
  • I change the value to “<h2>Hello Friends and Guys</h2>” on the ui
  • I call getValue getting “<h2>Hello Friends and Guys</h2>”
  • Then I try to reset the value programmatically by calling setValue(“<h2>Hello Friends</h2>”) but the value is not updated on the ui
  • I think the value is not updated on the ui, because the client thinks the value has not changed since the last call of setValue()
  • It should take the ui value into account for determining changes
  • To me it seems like a bug
  • Interestingly I had the same behavior when I tried out EnhancedRichtextEditor

It looks like a bug, I created a ticket for it, there is a workaround suggested in the ticket: setValue() does not update the UI when setting a value back to a previously-set value after the user has edited the field · Issue #30 · parttio/hugerte-for-flow · GitHub

1 Like