File links

Issues related to hyperlinks and web site navigation.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/links.html
Post Reply
Steve
 
 
Posts: 8
Joined: Wed Jul 24, 2019 9:19 am

File links

Post by Steve » Tue Sep 03, 2019 9:15 am

The formatting if you link a file in a text box is incorrect. The file link reverts to the default style and not the current text style.

<div id="wb_Text10" style="">
<p style="font-size:13px;line-height:16px;color:#000000;"><span style="font-size:20px;line-height:22.5px;color:#000000;">The </span><a href="2019 Southern Show Revised Timetable.pdf" target="_blank">new schedule </a><span style="font-size:20px;line-height:22.5px;color:#000000;">is here.</span></p>
</div>

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

Re: File links

Post by Pablo » Tue Sep 03, 2019 9:46 am

First note that the file name invalid.
Related FAQ:
http://www.wysiwygwebbuilder.com/forum/ ... f=10&t=131

Links have their own styles.
http://wysiwygwebbuilder.com/link_color.html

Steve
 
 
Posts: 8
Joined: Wed Jul 24, 2019 9:19 am

Re: File links

Post by Steve » Tue Sep 03, 2019 10:36 am

Well OK but this is supposed to be wysiwyg not wysi almost wyg. All I have done is add some text, highlight part of it, select add link, use type 'file' to add the file name. All this is allowed without any errors showing and it displays correctly in the app. When published everything works as it should except for the formatting of the link. If you can't enter a link with a .pdf then you should not alllow it to be selected.

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

Re: File links

Post by Pablo » Tue Sep 03, 2019 11:07 am

The pdf file is not the problem, it's the filename.
'Error Reports' should display a warning about the invalid filename.

In HTML, links have their own style, because a link can have multiple states (default, hover, active)

Steve
 
 
Posts: 8
Joined: Wed Jul 24, 2019 9:19 am

Re: File links

Post by Steve » Tue Sep 03, 2019 12:32 pm

I see what you mean about the file name and I understand about links. What I don't think is correct is that the font size changes - surely it should keep the format of the text that you highlight to set the link?

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

Re: File links

Post by Pablo » Tue Sep 03, 2019 1:27 pm

The font size should not change.
But maybe the font of the paragraph is different?
To solve this, select all text and then set the font size.

Steve
 
 
Posts: 8
Joined: Wed Jul 24, 2019 9:19 am

Re: File links

Post by Steve » Tue Sep 03, 2019 2:18 pm

I have solved it but not sure why. The object property 'output format' was set to use <p> tags, I changed this to 'default' and all is well.

Post Reply