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
Formatting of text styles - default styles
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
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
Formatting of text styles - default styles
And if I sometime confound dates and incidents, or tell the same old tale for the twentieth time, think "Oh what a vast field his laboring memory wanders."
Re: Formatting of text styles - default styles
Yes, it seems to work correct for me.Q 1: If default text color is set as in Step 1, shouldn't this affect text added to page?
I will investigate this issue.Q 2: Are "<p style...>" and "<span style...>" superfluous when there's a "<span class...>" ?
Note that you can change the output format in the properties, in that case it will work the same as in previous versions.
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).Q 3: Is there a guide for using style formatting tools, such as showing which affect inline, global, 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
I'll try to pin down the first issue. Thank you for your response - and the great program.
And if I sometime confound dates and incidents, or tell the same old tale for the twentieth time, think "Oh what a vast field his laboring memory wanders."
Re: Formatting of text styles - default styles
The Q2 issue should now be fixed in today's build (8/22/2019):
https://wysiwygwebbuilder.com/download.html
https://wysiwygwebbuilder.com/download.html