Page 1 of 1

Avoid spaghetti code

Posted: Tue Nov 19, 2019 10:19 pm
by wmeson
Hello, is there any way that wysiwig web builder does not generate unnecessary code (or spaghetti code) when constructing the final code?, For a simple DIV with a text inside it generates two additional DIVs without need, it can be configured so that it does not ?.Thank you

Re: Avoid spaghetti code

Posted: Wed Nov 20, 2019 6:58 am
by Pablo
The final code depends on al lot of setttings. For example, is the text absolute positioned or is it part of a layout grid or flex container. But also the formatting options in Tools -> Options -> HTML do affect the final code.
In generally, absolute positions generate more code because an extra div is needed to control the size and position of the object.

However, by default a text object only generates 1 div (for position and size).
Also, a text object with response fonts enabled generates less code because the entire object has the same font.