Navigate with tab key and use text editor with tab key

We have an application that includes a text editor. As you know, it is a good practice on the web to let the user also navigate with the tab key (WCAG 2.1.1, 2.1.2).

My question is that if you need to move between paragraph, section and point in the editor, and due to the use of MS Word, users are used to doing this ind the editor with the Tab key.

How could I solve the situation where you can move outside the editor (fields, buttons, etc.) with Tab key and inside the text editor you format the text in the same way (with the tab key).

Should these actions be with a different key combination or is it OK that you can do both actions with the Tab key

The attached picture shows a small part of the system to illustrate my question.

The attached picture shows a small part of the system to illustrate my question