Großes Proble: Versuche verzweifelt, den Editor timnymce mittels eines ajax requestes in einem Container zu laden. Leider passiert genau das, was ich vermutet habe: Es wird nur das Textfeld geladen, ohne den Editor
das wäre der normale Weg
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "simple"
});
</script>
</head>
<body>
<div class="content">
<form method="post" action="dump.php">
<textarea name="content" cols="50" rows="15">This is some content that will be editable with TinyMCE.</textarea>
</form>
</div>
</body>
</html>
Den request starte ich mit prototype
Code:
function advancedRequest(param, block, scroll)
{
var myAjax = new Ajax.Request('inc/content.php',
{
method: 'post',
postBody: param,
evalScripts : true,
onLoading: function(t)
{
$(block).innerHTML
= '<span class="loading">[img]../images/indicators/indicator_mozilla.gif[/img] ... Bitte Warten Content wird geladen</span>';
},
onComplete: function(e)
{
$(block).innerHTML = e.responseText;
Behaviour.apply();
}
});
return;
}
Evt. kann mir da jemand einen Tipp geben
Danke
derTrallala