Formatting of text styles - default styles

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
mhinnc
 
 
Posts: 10
Joined: Thu Dec 24, 2015 12:34 pm

Formatting of text styles - default styles

Post by mhinnc » Wed Aug 21, 2019 2:35 pm

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

User avatar
Pablo
 
Posts: 17623
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Formatting of text styles - default styles

Post by Pablo » Wed Aug 21, 2019 4:46 pm

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.

mhinnc
 
 
Posts: 10
Joined: Thu Dec 24, 2015 12:34 pm

Re: Formatting of text styles - default styles

Post by mhinnc » Wed Aug 21, 2019 6:07 pm

I'll try to pin down the first issue. Thank you for your response - and the great program.

User avatar
Pablo
 
Posts: 17623
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Formatting of text styles - default styles

Post by Pablo » Thu Aug 22, 2019 12:58 pm

The Q2 issue should now be fixed in today's build (8/22/2019):
https://wysiwygwebbuilder.com/download.html

Post Reply