HomeHow to get text line style with state to HTML using css – React wyswyig editor.

How to get text line style with state to HTML using css – React wyswyig editor.

I am using react-draft-wysiwyg editor, and I see the application of styling using text line options on the editor but when I change the data using state to html I find that But no style seems to apply.

<Editor
          editorState={this.state.editorState}
          onEditorStateChange={this.handleEditorChange}
          wrapperClassName="wrapperClassName"
          editorClassName="editorClassName"
          toolbarClassName="toolbarClassName"
          toolbar={{
            options: ['inline', 'blockType', 'list', 'emoji', 'textAlign']
/>

Enter image description here.

Here I have used Center Text Indentation, but after converting to State to HTML I do not see any way to apply the data to save. I need to save data with styling.

Can anyone help me solve this?