You are not logged in.
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
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
Offline
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!
Offline