Moinsn,
an dem Problem stand ich schonmal, habs auch mal geschafft nur ich weiß nicht mehr wie es war. Momentan programmiere ich nen Back-End für ne Clanpage von nem Freund. Folgende Ordnerstruktur habe ich:
- admin
- inc
-- config.php
-- sql.php
-- inhalt.php
- inhalt
-- addwar.html
-- addnews.html
- tiny_mce.js
- index.php
So hier meine index.php:
Laut dem Wiki vom hersteller des TinyMCE's ist das so richtig... aber es funktioniert nicht bzw. zeigt den TinyMCE garnicht erst an.
an dem Problem stand ich schonmal, habs auch mal geschafft nur ich weiß nicht mehr wie es war. Momentan programmiere ich nen Back-End für ne Clanpage von nem Freund. Folgende Ordnerstruktur habe ich:
- admin
- inc
-- config.php
-- sql.php
-- inhalt.php
- inhalt
-- addwar.html
-- addnews.html
- tiny_mce.js
- index.php
So hier meine index.php:
PHP:
<?php
include("inc/config.php");
include("inc/sql.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
body {font-family:Verdana;font-size:11px;}
body a:link {text-decoration:inherit;color:#000000; font-size:11px;}
body a:visited {text-decoration:none; color:#000000; font-size:11px;}
body a:active {text-decoration:none; color:#000000; font-size:11px;}
body .success {width:183px; margin:0 0 2.5em 0px; padding:0 0 10px 0; border:solid 1px rgb(137,170,214); background-color:rgb(213,225,240);}
body .error {width:183px; margin:0 0 2.5em 0px; padding:0 0 10px 0; border:solid 1px rgb(232,177,13); background-color:rgb(248,224,150);}
table {font-family:Verdana;font-size:11px;}
table .beschreibung {border:solid 1px rgb(137,170,214); background-color:rgb(213,225,240);}
select {font:8pt verdana; border:solid 1px rgb(137,170,214);}
input {font:8pt verdana; border:solid 1px rgb(137,170,214);}
textarea {font:8pt verdana; border:solid 1px rgb(137,170,214);}
.content {font-family:Verdana;font-size:10px;}
.liste {list-style-type: none; list-style: none;}
.content a:link {text-decoration:none; color:#000000; font-size:11px;}
.content a:visited {text-decoration:none; color:#000000; font-size:11px;}
.content a:active {text-decoration:none; color:#000000; font-size:11px;}
-->
</style>
<script language="javascript" type="text/javascript" src="tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas"
});
</script>
<title>Adminpanel Newssystem & WarScript</title>
</head>
<body>
<body>
<table width="100%" border="0">
<tr>
<th colspan="4" scope="col"><h1>Adminbereich</h1></th>
</tr>
<tr>
<th scope="col"><a href="?section=addnews">News hinzufügen</a></th>
<th scope="col"><a href="?section=viewnews">News ansehen </a></th>
<th scope="col"><a href="?section=addwar">War hinzufügen </a></th>
<th scope="col"><a href="?section=viewwar">War ansehen</a></th>
</tr>
<tr>
<th colspan="4" scope="col"> </th>
</tr>
<tr>
<td height="75" colspan="4"><table width="100%" border="0">
<tr>
<td width="83%" height="100%"><div align="center" class="content"><?php include("inc/inhalt.php");?> </div> </td>
</tr>
</table>
<div align="center"></div></td>
</tr>
</table>
</body>
</html>