Page 1 of 1

Does tinyMCE support HR?

Posted: Fri Nov 23, 2007 8:05 am
by sarah_h
Hi

I'm using CMS Made Simple 1.1 "Samoa" on PC WIN XP and TinyMCY 2.2

We have a need to add horizontal lines between our paragraphs and wondered whether TMCE supports HR which pops in a horizontal rule into the document. I've seen this on other editors (I think!?, no, I'm fairly sure). I went to the toolbar setup in admin but noticed there was no option for an HR. Is this the case? Is it possible that I could somehow create a HR inside of Tiny MCE?

Thanks

Sarah

Re: Does tinyMCE support HR?

Posted: Fri Nov 23, 2007 8:50 am
by KO
Open TinyMCE module setting in Admin Panel and toolbox tab or something like that. You see 2 lines that control what buttons are available. Just add "hr" separated with commas where you want to have that button.

br, K

Re: Does tinyMCE support HR?

Posted: Fri Nov 23, 2007 9:37 am
by sarah_h
Ah yes, that did it! Just a quick point: If the HR needs styling using CSS make sure these rules (if a thin hairline is needed) are used otherwise there's be problems between IE and FF.

hr {
border: 0;
height: 1px;
background-color: #ccc;
color:#ccc;
}

FF needs the BG color while IE does not!

HTH

Sarah

Re: Does tinyMCE support HR?

Posted: Fri Nov 23, 2007 9:51 am
by KO
or another way...

margin:5px 0 0;
padding: 0 0 5px;
border:none;
border-top:1px solid #ccc;

br, K

Re: Does tinyMCE support HR?

Posted: Fri Nov 23, 2007 9:57 am
by sarah_h
KO wrote: or another way...

margin:5px 0 0;
padding: 0 0 5px;
border:none;
border-top:1px solid #ccc;

br, K
Yep, that works too! The default HR is too 1996 and using these rules make it a bit more subtle and configurable!!

Re: Does tinyMCE support HR?

Posted: Fri Nov 23, 2007 10:35 am
by KO
yes.. thank God there is some ways make them look like this day...