Pagemaker - Word processor

Hello,
Before starting to code or use program parts already achieved, I wanted to ask your opinion or advice on how to proceed.
The goal is to create a word processor with the insertion of mathematical formulas and pictures (which can be positioned in the middle of the text).
Would it be wise to use separate textareas or textfields, to juxtapose them, or perhaps a general canvas or several canvas?
And what about printing then?
Thanks for your help.
BB

take a look at ftc : https://www.bkeeney.com/formatted-text-control/

then use the plugin text-input-canvas : https://bkeeney.com/text-input-canvas/

Thank you Jean-Yves,

My knowledge is not wide enough to understand and know how to compile the plugin with the basic program and despite my research I did not succeed.
However we can say that the basis of this kind of programs is the Canvas which is what I am going to do.
Thanks again