Align text to left

Hello, I embedded codemirror in my React application.
I set the value option of codeMirror and the text is printed in the middle of the screen and if i type some words, the text is being moved on the left. It’s like if there is center alignement activated or something like this. How can I align left? See Image below.
Thank you.

I guess your page includes some CSS that changes the text-align property of either the entire editor or some element inside it. Use the dev tools to figure out which rule it is, and either change the rule or override it with a more specific rule for the editor.

Thank you, the problem was the css.