Italic and clear option in text editor are not working. I have tried removing and installing wysiwyg text editor but still I cant use Italic and Clear toolbar buttons. I am able to press it i.e. it is clickable but there is no change in the editor state. Can anyone help me with this ?
return ( <div className="editor">
<Editor
handleBeforeInput={handleBeforeInputFunction}
handlePastedText={handlePastedTextInput}
toolbar={{
options: ['inline', 'blockType', 'list', 'textAlign', 'colorPicker', 'link', 'embedded', 'emoji', 'image', 'remove', 'history'],
image: {
previewImage: true,
urlEnabled: true,
uploadEnabled: true,
uploadCallback: uploadImageCallBack,
alt: { present: true, mandatory: true },
},
}}
toolbarClassName="toolbarClassName"
editorState={editorState}
wrapperClassName="demo-wrapper"
editorClassName="demo-editor"
onEditorStateChange={onEditorStateChange}
/>
</div>
);