I am testing richtext widgets with htmlarea_p set to 0 and they don't work. The problem is an extra hidden element for the format property set to the empty string. Since the regular richtext widget shows the format dropdown it should not have the hidden element.
The code to check for display mode does not work correctly:
# Display mode
if { [info exists element(value)] } {
It checks is element(value) exists instead of checking element(mode) eq "display".
I made this change on my copy and it seems to work. Does this make sense? I could not find where the original code was written to check for display mode in CVS so I am not sure if there was a reason to not use element(mode) here.
It looks like in at least some cases element(value) exists but is empty and that passes the test even if you are in edit mode.