diff --git a/src/index.js b/src/index.js index 72029ab..72ad292 100644 --- a/src/index.js +++ b/src/index.js @@ -73,7 +73,7 @@ export default ({ value = EMPTY_CONTENT, }) => { const locale = i18n[configuration.language]; const isRtl = configuration.language == "ur" ? true : false; - const [editorState, setEditorState] = useState(value !== null & value === EMPTY_CONTENT && format == 'markdown'? ' ' : EMPTY_CONTENT); + const [editorState, setEditorState] = useState(value !== null & value === EMPTY_CONTENT && configuration.format == 'markdown'? ' ' : EMPTY_CONTENT); const initialConfig = { namespace: "MyEditor", editorState: configuration.format == "markdown" ? () => value == null ? '' : $convertFromMarkdownString(value, TRANSFORMERS) : value,