Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-03-16 15:33:17

mospaw
New member
Registered: 2007-03-16
Posts: 2

Changing default HR insert values.

Sorry if this is a basic newbie question, but I've looked all over and can't find out how to change the default HR insert behavior.

All I want is a plan old <HR> tag, but Xinha puts in width="100%" size="2" by default.

Would someone be so kind as to tell me how to change this? Thanks!

Last edited by mospaw (2007-03-17 00:26:45)

Offline

#2 2007-03-17 06:49:42

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Changing default HR insert values.

This is done by the browser as they think it's best...

You could tweak the behaviour of the button as to manually insert a plain hr like this

//put this in your config
   if ( Xinha.is_gecko )
   {
     xinha_config.btnList.inserthorizontalrule[3] = function(e) { e.execCommand("inserthtml",false,"<hr />"); };
   }

You may however notice why the size="2" is put in, default is quite thin smile

Offline

#3 2007-03-17 12:32:24

mospaw
New member
Registered: 2007-03-16
Posts: 2

Re: Changing default HR insert values.

Ray,

A million thanks! That worked perfectly. I wish I knew more about the details of the editor, since it's such a great piece of programming.

No fears on how the default line is thin. The site it's going on has full CSS styling. The width and size were actually interfering! smile

Offline

Board footer

Powered by FluxBB