Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-09-16 09:51:12

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Text formating in articles

Hi, is there a problem if client is adding articles in this way:

<p><font size="5" face="Times New Roman, Times, serif"><strong>Some text</strong> <br>
                <strong>Some text</strong></font></p> 
<p>&nbsp;</p>
<p><font size="3" face="Times New Roman, Times, serif"><em>„Some text“</em><br>
  (Some text)&nbsp;</font></p>
            <p>&nbsp;</p>

I am asking because there are some wierd problems on a site, like there is a list of article headlines in the second column on the site, but headlines wont break sometimes, but continue to go to the next, third column, causing site to break in IE6, but most of the times headlines are ok, they break to the next line if they are too long.

In the place for title, when adding new article, he is entering just plain text.

Offline

#2 2009-09-16 10:28:41

txpnisti
Member
Registered: 2009-02-25
Posts: 23

Re: Text formating in articles

I was some time ago in a situation where overlong urls showed as clickable links didn’t fit in box in IE6. I used css word-wrap:break-word; to fix it. Ugly but didn’t find other way (expect overflow:auto; generates scrollbars if needed).

info

Any help?

Offline

#3 2009-09-16 10:48:49

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: Text formating in articles

Thanks, but the problem is not only in IE6.

In IE6 its the complete breakdown, because the third column drops down.

But in all other browsers text goes out of the box.

word-wrap:break-word; does not help. It is breaking with it, but not in a good way. Its like:

Some very long head
line

overflow:auto; generates scrollbars wich is not an option in my case

In this info link that you posted, the word is too long. But in my case it is not like that. Its like there are two words, and everything should be ok, but the second word instead to go to the next line, stays on the first.

Here is the screenshot:
link

Offline

#4 2009-09-16 11:31:24

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Text formating in articles

One of the problems with the code of your client is that it is not xhtml valid the br tag for example is not escaped.

I’d try to teach them to go the textile way.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2009-09-16 12:15:25

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: Text formating in articles

@colak
I tried, but sometimes the articles are very long, so it’s hard for him with textile. It’s easier to do formating in Dreamveawer or Word, and the to copy/paste in txp (I think thats what he is doing) with all the invalid html which makes web page not valid.

But could this be the reason for this problem? Because if that’s the problem, I’ll definitly insist that he does all the formating in Textile. But I need to be sure.

On the other hand, all other headlines would then behave the same way. But, this happens only with some.

Offline

#6 2009-09-16 13:06:10

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Text formating in articles

AndrijaM wrote:

On the other hand, all other headlines would then behave the same way. But, this happens only with some.

Hi Andrija

can you post an actual url? It’s hard to diagnose from a screensot


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2009-09-16 17:01:21

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: Text formating in articles

Ok, here’s the URL
link
Notice the second column and that the same headline that is cousing the problem in the top of the column, is behaving corectly in the lower part of the second column.

Offline

#8 2009-09-16 17:20:53

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Text formating in articles

You are using no-widowed titles preference in TXP, which is designed to compine last two words together with strong space. To prevent the odd results from happening, turn Prevent widowed words in article titles? to No in TXP’s Advanced preferences.

Last edited by Gocom (2009-09-16 17:21:31)

Offline

#9 2009-09-17 11:58:07

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: Text formating in articles

Thats it! Gocom, you saved me so many times :)

So, I guess it’s ok for my client to use text formating like he used to, with html tags? I know it makes code invalid, but it’s easier for him to do it that way.

Offline

Board footer

Powered by FluxBB