Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0 - Add-Ons:
insertTAB *w000t*


Aug 1, 2003, 8:15 AM

Views: 55752
insertTAB *w000t*

I made a tab button to outline your text easier
just add a button in your list and add this with the custom buttons

else if (cmdID.toLowerCase() == 'tab') { // insertTAB by Antens Peter
var tabWidth = 25;
editor_insertHTML(objname, "<SPAN CLASS='TabSpacing' id=\"tempTabID\"></SPAN>");
var spanTabObj = frames.eval("_" + objname + "_editor").document.all.tempTabID;
var tabPos = spanTabObj.offsetLeft;
var x = tabPos;
x = (tabWidth -(x%tabWidth))*1;
spanTabObj.style.width= x;

and you only have to add this into a css file


you can thank me later Tongue

(This post was edited by sgrdaddy on Aug 1, 2003, 8:19 AM)

New User

Jan 26, 2005, 9:31 AM

Views: 55352
Re: [sgrdaddy] insertTAB *w000t*

That doesn't work for me ... if i enter

1 [click the tab button] option 1

10 [click the tab button] option 2

then the "option 1" and "option 2" don't line up (hope you know what i mean).

If you're doing it that way, you might as well just use editor_insertHTML(objname, "<pre style=\'display:inline;\'> </pre>");