title: Draft.js only expose content
body: <p>I'm building a simple text editor that relies on Draft.js for decorating the text (mainly highlighting). I really like how simple it is to build a reliable input that has custom syntax highlighting.</p>
  
  <p>However, I do not like the fact that I have to expose the entire editor state to do this. I'd prefer to have an editor that has just a <code>value</code> property that takes a string and passes a string trough the <code>onChange</code> prop.</p>
  
  <p>This seems a reasonable thing to be able to do, yet I'm dumbfounded by how hard it is to transfer selection state.</p>
  
  <p>Because of how draft.js is implemented, I find this hard to do. I need to create a new editorState based on the <code>value</code> prop every time it changes, which is doable, But it is hard to transfer <code>selectionState</code> between the old <code>editorState</code> and the new one because the <code>selectionState</code> relies on opaque identifiers that are unique to each state.</p>
  
  <p>Has anyone tried to accomplish this? Is draft.js overkill for this an should I use a simpler solution that also works? I'm only using the decorators so I guess it would not be super-hard to just rebuild that part.</p>