title: How to use RichTextEditor with HTML value?
body: <p>I am trying to use <code>com.vaadin.flow.component.richtexteditor.RichTextEditor</code> in a form and I need to get and set the <strong>HTML</strong> format and <strong>not the delta format</strong>, I further need to employ the <code>getValue()</code> and <code>setValue()</code> for homogeneity to all other fields of the form that use those methods. So I tried something like this:</p>
  <pre><code>public class HtmlEditor extends RichTextEditor {
    private HasValue&lt;?, String&gt; htmlValue;
  
    public HtmlEditor() {
      htmlValue = asHtml();
      setThemeName(RichTextEditorVariant.LUMO_COMPACT.getVariantName());
    }
  
    @Override
    public String getValue() {
      return StringUtils.trimToNull(htmlValue.getValue());
    }
  
    @Override
    public void setValue(String value) {
      htmlValue.setValue(StringUtils.trimToEmpty(value));
    }
  
  
  }
  
  </code></pre>
  <p>But this does not work because RichTextEditor itself uses getValue and setValue directly expecting (I guess) delta format.</p>
  <p>I considered wrapping RichTextEditor as a composed component, but this seems me an overkill for a simple and so usual need to read and write HTML.</p>
  <p>Is there an easy solution?</p>