MySQL interesse |
|
Hmmm ik werk ook met TinyMCE en AJAX alleen gebruik ik het op de volgende manier.
De pagina waar ik de textarea inlaad heb ik het volgende:
<?= $this->headScript()->appendFile($this->files . '/jscripts/tinymce/tiny_mce.js', 'text/javascript') ?>
<script type="text/javascript">
tinyMCE.init(
{
mode : "textareas",
theme : "advanced",
plugins : "paste",
// Theme toolbar configurations
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_resizing : true,
// Theme buttons
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,formatselect,fontselect,fontsizeselect,|,forecolor,backcolor",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,|,undo,redo,|,justifyleft,justifycenter,justifyright,justifyfull,|,cleanup,code,|,bullist,numlist,|,outdent,indent,blockquote",
theme_advanced_buttons3 : ""
});
</script>
<?= $this->headScript()->appendFile($this->files . '/jscripts/tinymce/tiny_mce.js', 'text/javascript') ?> <script type="text/javascript"> tinyMCE.init( { mode : "textareas", theme : "advanced", plugins : "paste", // Theme toolbar configurations theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_resizing : true, // Theme buttons theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,formatselect,fontselect,fontsizeselect,|,forecolor,backcolor", theme_advanced_buttons2 : "cut,copy,paste,pastetext,|,undo,redo,|,justifyleft,justifycenter,justifyright,justifyfull,|,cleanup,code,|,bullist,numlist,|,outdent,indent,blockquote", theme_advanced_buttons3 : "" }); </script>
(headScript is een view helper [Zend Framework])
dus ik denk dat de pagina die jij opvraagt met AJAX en je wilt tinymce erop hebben dat je dan ook op die pagina alles moet aanroepen daarvoor...
|