Pagemaker - Word processor

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.

take a look at ftc :

then use the plugin 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