How to set default font family and size in draft.js
<p>I am learning draft.js editor and can't find how to configure default font-family and font size.</p>

<p>I tried this way:</p>

<pre><code>let editorState = EditorState.createEmpty();

let newState = RichUtils.toggleBlockType(
    editorState,
    'aligncenter'
);

newState = RichUtils.toggleInlineStyle(
    newState,
    'FONT_SIZE_36'
);
newState = RichUtils.toggleInlineStyle(
    newState,
    'TIMES_NEW_ROMAN'
);
</code></pre>

<p>What is weird, <strong>aligncenter</strong> style works fine, but <strong>font size</strong> and <strong>family</strong> disappears when component gets focus.</p>

<p>Can you please suggest correct way how to do it?</p>