TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 05:12:05 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 310
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 285
  • Total: 286
  • lurkalot

Formatting of Text in Article-Block

Started by Wichtlmex, May 23, 2019, 01:31:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Wichtlmex

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

SMF 2.1 RC1, TP 1.6.3

@rjen

Please explain?

What do you mean with "reduction of HTML formatting"
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Wichtlmex

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.
SMF 2.1 RC1, TP 1.6.3

@rjen

Can you post the html code you are using here?

Either in an attachment or between [code ] [ /code] tags? I want to check it...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Wichtlmex

Oh, sorry... I don't know how to do that.

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

SMF 2.1 RC1, TP 1.6.3

@rjen

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...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Wichtlmex

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>
SMF 2.1 RC1, TP 1.6.3

@rjen

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...

Running Latest TP on SMF2.1 at: www.fjr-club.nl

Wichtlmex

Thank you very much for making me understand.
Michael
SMF 2.1 RC1, TP 1.6.3