Avoid spaghetti code

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
wmeson
 
 
Posts: 4
Joined: Tue Nov 19, 2019 10:16 pm

Avoid spaghetti code

Post 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
User avatar
Pablo
 
Posts: 23243
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Avoid spaghetti code

Post 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.
Post Reply