Hi, hab ein Problem mit dem HTMLarea Script, wie bekomme ich meine eigenen CSS Styles in das Feld, die eigene Hilfe nützt mir nichts, funktioniert trotzdem nicht.
Vielleicht kann mir jemand erklären wo ich was einfügen muss:
<<CODE ANFANG>>
<html>
<head>
<title>HTMLArea</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- -->
<script language="Javascript1.2"><!-- // load htmlarea
_editor_url = ""; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>
<!-- -->
</head>
<body>
<script language="JavaScript1.2" defer>
var config = new Object(); // create new config object
config.width = "72%";
config.height = "200px";
config.bodyStyle = 'background-color: #FFFFFF; font-family: "Verdana"; font-size: 10pt;';
config.debug = 0;
// Add additional editor config settings here...
config.toolbar = [
['fontname'],
['fontsize'],
['bold','italic','underline','separator'],
['strikethrough','subscript','superscript','separator'],
['justifyleft','justifycenter','justifyright','separator'],
['OrderedList','UnOrderedList','Outdent','Indent','separator'],
['forecolor','backcolor','separator'],
//['custom1','custom2','custom3','separator'],
['HorizontalRule','Createlink','InsertImage','htmlmode','separator'],
['about','help']
];
editor_generate('textfield',config);
</script>
<input type="text" name="textfield">
</body>
</html>
<<CODE ENDE>>
mfg & thx im voraus
Vielleicht kann mir jemand erklären wo ich was einfügen muss:
<<CODE ANFANG>>
<html>
<head>
<title>HTMLArea</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- -->
<script language="Javascript1.2"><!-- // load htmlarea
_editor_url = ""; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>
<!-- -->
</head>
<body>
<script language="JavaScript1.2" defer>
var config = new Object(); // create new config object
config.width = "72%";
config.height = "200px";
config.bodyStyle = 'background-color: #FFFFFF; font-family: "Verdana"; font-size: 10pt;';
config.debug = 0;
// Add additional editor config settings here...
config.toolbar = [
['fontname'],
['fontsize'],
['bold','italic','underline','separator'],
['strikethrough','subscript','superscript','separator'],
['justifyleft','justifycenter','justifyright','separator'],
['OrderedList','UnOrderedList','Outdent','Indent','separator'],
['forecolor','backcolor','separator'],
//['custom1','custom2','custom3','separator'],
['HorizontalRule','Createlink','InsertImage','htmlmode','separator'],
['about','help']
];
editor_generate('textfield',config);
</script>
<input type="text" name="textfield">
</body>
</html>
<<CODE ENDE>>
mfg & thx im voraus
Kommentar