title: How to se defaultValue for AtlasKit editor/editor-core?
body: <p>I'm trying to get a simple controlled component going that outputs a string of html and takes in a string of html.</p>
  
  <p>Unfortunately atlaskit team turned off issues in the repo. I see this link on google, but can't actually see it on bitbucket (sigh): <a href="https://bitbucket.org/atlassian/atlaskit-mk-2/issues/89/way-to-get-html-as-it-is-in-atlaskit" rel="nofollow noreferrer">https://bitbucket.org/atlassian/atlaskit-mk-2/issues/89/way-to-get-html-as-it-is-in-atlaskit</a></p>
  
  <p>Has anyone else given this a try? None of the docs seem to be updated. The defaultValue field, when given a string, spits out "not valid json".</p>
  
  <p><a href="https://atlaskit.atlassian.com/packages/editor/editor-core" rel="nofollow noreferrer">https://atlaskit.atlassian.com/packages/editor/editor-core</a></p>
  
  <pre><code>  import { EditorContext, WithEditorActions } from '@atlaskit/editor-core';
    import { CollapsibleEditor } from 'previous-example';
  
    &lt;EditorContext&gt;
      &lt;div&gt;
        &lt;CollapsibleEditor /&gt;
        &lt;WithEditorActions
          render={actions =&gt; (
            &lt;ButtonGroup&gt;
              &lt;Button onClick={() =&gt; actions.clear()}&gt;Clear Editor&lt;/Button&gt;
              &lt;Button onClick={() =&gt; actions.focus()}&gt;Focus Editor&lt;/Button&gt;
            &lt;/ButtonGroup&gt;
          )}
        /&gt;
      &lt;/div&gt;
    &lt;/EditorContext&gt;;
  </code></pre>
  
  <p>The above example won't work and neither do any of the "transformers" that supposedly get the value ready for the editor.</p>
  
  <p><a href="https://atlaskit.atlassian.com/packages/editor/editor-json-transformer" rel="nofollow noreferrer">https://atlaskit.atlassian.com/packages/editor/editor-json-transformer</a></p>
  
  <p>From the little I've gathered, it seems like it takes a </p>
  
  <p>It sucks because the editor is beautiful and all the other facets seems to be working well, I just can't get a damn default value in there which makes it hard to use as an input for editing values.</p>
  
  <p>I understand why atlaskit team turned off issues (programmers these days are ungrateful, to say the least). Hopefully somebody can help me here though!</p>
  
  <p>Further Reading:
  - I think it uses prosemirror: <a href="https://discuss.prosemirror.net/t/how-to-create-a-mention-plugin-similar-to-atlaskit-supporting-popup/1439" rel="nofollow noreferrer">https://discuss.prosemirror.net/t/how-to-create-a-mention-plugin-similar-to-atlaskit-supporting-popup/1439</a></p>