Inserting paragraph after image and bugs related to it

Trying to insert paragraph after image is a very problematic. Cursor must be moved after it which is not possible in normal ways. The image must be selected, paragraph before it must be inserted and undone, only then image could be moved to the place after it. The next inserted element appears incorrect as it includes a class that should not be there. Using Mozilla Firefox ESR 102. The related behavior is shown in the gif below.

Trending on Loforo: