Page 1 of 1
File links
Posted: Tue Sep 03, 2019 9:15 am
by Steve
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>
Re: File links
Posted: Tue Sep 03, 2019 9:46 am
by Pablo
Re: File links
Posted: Tue Sep 03, 2019 10:36 am
by Steve
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.
Re: File links
Posted: Tue Sep 03, 2019 11:07 am
by Pablo
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)
Re: File links
Posted: Tue Sep 03, 2019 12:32 pm
by Steve
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?
Re: File links
Posted: Tue Sep 03, 2019 1:27 pm
by Pablo
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.
Re: File links
Posted: Tue Sep 03, 2019 2:18 pm
by Steve
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.