Page 1 of 1

Formatting of text styles - default styles

Posted: Wed Aug 21, 2019 2:35 pm
by mhinnc
Re setting the default font and text color for an added text object:

Following the steps below, I'm unsure as to why things are as they are. If anyone can offer an explanation, please do so. I've added a few questions below. Thanks for any/all help!

Beginning with new blank page.

Step 1. I've set the "Page Properties > Style > Defaults" to:
Font family: "Times New Roman",
Text color: "Green".
Clicked "Make Default" and "Yes".

Step 2. Toolbox > Text tool selected and text box added to page.

Step 3. Text added in text box. (Text color is #000000, not Green.)

Step 4. Tools > Style Manager: "CustomStyle" modified > Font Family: "Times New Roman"; Text Color: "Green". This style was applied to text.

Step 5. Page published: https://salisburylmc.org/page1.php

Step 6. Page opened; page source viewed.

Step 7. <p> tag contents:
<p style="font-weight:bold;color:#008000;"><span style="color:#008000;"><span class="CustomStyle">Test text.</span></p></div>

Step 8. Viewing the code generated: although "<span class=CustomStyle" exists, "<p style" and "<span style" are generated. Also, only one "</span>" tag is generated.

Q 1: If default text color is set as in Step 1, shouldn't this affect text added to page?
Q 2: Are "<p style...>" and "<span style...>" superfluous when there's a "<span class...>" ?
Q 3: Is there a guide for using style formatting tools, such as showing which affect inline, global, etc.?

Again, many thanks for any help.
Mark

Re: Formatting of text styles - default styles

Posted: Wed Aug 21, 2019 4:46 pm
by Pablo
Q 1: If default text color is set as in Step 1, shouldn't this affect text added to page?
Yes, it seems to work correct for me.
Q 2: Are "<p style...>" and "<span style...>" superfluous when there's a "<span class...>" ?
I will investigate this issue.
Note that you can change the output format in the properties, in that case it will work the same as in previous versions.
Q 3: Is there a guide for using style formatting tools, such as showing which affect inline, global, etc.?
The generated HTML depends on the text properties and other parameters. For example, whether the object is inside a container, layout grid, is floating/absolute etc).
There may be hundred of possible combinations, so there is no easy way to explain what impact setting have on the output code.

Re: Formatting of text styles - default styles

Posted: Wed Aug 21, 2019 6:07 pm
by mhinnc
I'll try to pin down the first issue. Thank you for your response - and the great program.

Re: Formatting of text styles - default styles

Posted: Thu Aug 22, 2019 12:58 pm
by Pablo
The Q2 issue should now be fixed in today's build (8/22/2019):
https://wysiwygwebbuilder.com/download.html