TinyPortal

Development => Support => Topic started by: Wichtlmex on May 23, 2019, 01:31:54 PM

Title: Formatting of Text in Article-Block
Post by: Wichtlmex on May 23, 2019, 01:31:54 PM
Hi,
I observe the reduction of HTML formatting of an article when shown in a block.
I could not find a documentation for that issue.
Is this normal behaviour?

Regards
Michael

Title: Re: Formatting of Text in Article-Block
Post by: @rjen on May 23, 2019, 04:43:49 PM
Please explain?

What do you mean with "reduction of HTML formatting"
Title: Re: Formatting of Text in Article-Block
Post by: Wichtlmex on May 23, 2019, 09:47:08 PM
Sorry for not being clear. The attachment shows it:
Only BOLD font is transferred into the block.
The same article is shown inside a "single article" block.
Title: Re: Formatting of Text in Article-Block
Post by: @rjen on May 23, 2019, 09:49:39 PM
Can you post the html code you are using here?

Either in an attachment or between [code ] [ /code] tags? I want to check it...
Title: Re: Formatting of Text in Article-Block
Post by: Wichtlmex on May 23, 2019, 09:59:09 PM
Oh, sorry... I don't know how to do that.

I pasted the test from an HTML web page into the article.

Title: Re: Formatting of Text in Article-Block
Post by: @rjen on May 23, 2019, 10:09:02 PM
Go to edit article of the HTML article you created, take a screenshot of the content of the 'body' and attach that here to a reply...

By the way: when copying HTML code (stuff with < a=href > <p > and stuff in it, you must first swith to 'View source' and NOT use the WYSIWYG editor...
Title: Re: Formatting of Text in Article-Block
Post by: Wichtlmex on May 24, 2019, 06:48:47 PM
Wow.. thanks, you are teaching me a lot.
A screen shot is too small, so I include the code here:

<p>
</p>
<h1>
¿Quienes somos?<br /> Wer sind wir?
</h1>
<p>
Somos una sociedad sin fines políticos o religiosos que tiene como meta fomentar las relaciones culturales y humanas entre Alemania y el mundo de habla hispana a través de:
</p>
<ul>
<li>
la realización de charlas, reuniones temáticas, eventos gastronómicos, culturales, etc.
</li>
<li>
fomentar el conocimiento y la comprensión mutua para una mejor integración en Alemania.
</li>
<li>
la difusión del idioma español y la diversidad de nuestras culturas.
</li>
<li>
la cooperación con instituciones similares en Alemania y otros países.
</li>
</ul>
<p>
Wir sind eine Gesellschaft ohne politische oder religiöse Zwecke. Unsere Ziele sind: Förderung der kulturellen und menschlichen Beziehungen zwischen Deutschland und der spanischsprachigen Welt durch:
</p>
<ul>
<li>
Gesprächsabende, Treffen, gastronomische und kulturelle Veranstaltungen usw.
</li>
<li>
Förderung der Integration und des gegenseitigen Verständnisses durch besseres Kennenlernen.
</li>
<li>
Näherbringen der spanischen Sprache und der Vielfalt unserer Kulturen.
</li>
<li>
Zusammenarbeit mit ähnlichen Einrichtungen in Deutschland und in anderen Ländern.
</li>
</ul>
<p>
<br />
</p>
Title: Re: Formatting of Text in Article-Block
Post by: @rjen on May 25, 2019, 06:09:38 AM
I think I know what you mean now.

There are differences in HTML formatting shown in de WYSIWYG editor and in the article showing on the site.

This is unfortunately due to the way SMF defines styles: the editor we are using is the same that is being used in SMF: it has a 'standard' stylesheet. SMF itself has a somewhat different definition of some styles, making the resulting text look somewhat different from what you see in the editor. Most striking example is the H1 tag in your example...

Best advice it to save an HTML article while you are writing an use the 'View article' to check if the result is to your liking...

As for you original note: a HTML article in TinyPortal will look the same as an article or when showing in a block. There is only a slight decrease in line heights in all blocks...

See my example below...

Title: Re: Formatting of Text in Article-Block
Post by: Wichtlmex on May 25, 2019, 05:21:42 PM
Thank you very much for making me understand.
Michael