Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0:
Tables in htmlarea



LarsD
New User

Feb 15, 2005, 1:28 PM


Views: 7654
Tables in htmlarea

Hi,

Just found this really great script today and am wondering how to use tables in the editor?

I initialize by using the following code:

Code
<script language="JavaScript1.2" defer> 
var config = new Object(); // create new config object


config.width = "90%";
config.height = "200px";
config.bodyStyle = 'background-color: white; font-family: "Trebuchet MS"; font-size: 8pt;';
config.debug = 0;


config.toolbar = [
// ['fontname'],
// ['fontsize'],
// ['fontstyle'],

['bold','italic','underline','separator'],
// ['strikethrough','subscript','superscript','separator'],
// ['justifyleft','justifycenter','justifyright','separator'],
['OrderedList','UnOrderedList','separator'],
// ['forecolor','backcolor','separator'],
//['custom1','custom2','custom3','separator'],
['InsertImage','htmlmode','separator'],
// ['about','help']
];

// Add additional editor config settings here...

editor_generate('indhold',config);
</script>


TIA
Lars