htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

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



sgrdaddy
Novice

Aug 1, 2003, 8:15 AM


Views: 57091
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


Code
   
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;
spanTabObj.id="";
}




and you only have to add this into a css file

.TabSpacing
{width:25px;}

you can thank me later Tongue


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


Edit Log:
Post edited by sgrdaddy (Novice) on Aug 1, 2003, 8:19 AM


Search for (options)