Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
galera sou novo no forum, e já to com uma duvida que está me atormentando o dia inteiro
seguinte, criei uma página e nela á 2 links, e criei uma div chamada conteudo
ao clicar no link, ele chama por ajax o conteudo de outra .php para a div conteudo.
ai tudo bem, funcionando belezinha
agora vem o problema,
eu tenho o arquivo editor.php que possui o famoso TinyMCE.
quando executo essa página normalmente, ele funciona. soh que se eu tentar chamar está pagina pelo AJAX, ela soh vem um textarea (sem o editor)
pq?
alguem pode me ajudar? :(
valeo
espero que entendam :P
SEGUE ABAIXO OS CODIGOS
CODIGO DA INDEX.PHP
<html xmlns="http://www.w3.org/1999/xhtml">Word example</title><script src="scripts/ajax.js" type="text/javascript"></script></head><body><p><a href="java script:void( 0 )" onClick="loadxml('novopost.php','conteudo','null');">link DO EDITOR</a> / <a href="java script:void( 0 )" onClick="loadxml('teste1.php','conteudo','null');">link que funciona</a></p><p> </p><p> </p><div id="conteudo"></div></body></html>
CODIGO DA TESTE1.PHP
<html xmlns="http://www.w3.org/1999/xhtml">oi?
CODIGO DA NOVOPOST.PHP
<script language="javascript" type="text/javascript" src="editor/jscripts/tiny_mce/tiny_mce.js"></script><script language="javascript" type="text/javascript"> tinyMCE.init({ mode : "textareas", theme : "advanced", plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen", theme_advanced_buttons1_add_before : "save,newdocument,separator", theme_advanced_buttons1_add : "fontselect,fontsizeselect", theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor", theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator", theme_advanced_buttons3_add_before : "tablecontrols,separator", theme_advanced_buttons3_add : "emotions,iespell,media,advhr,separator,print,separator,ltr,rtl,separator,fulscreen", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", content_css : "example_word.css", plugi2n_insertdate_dateFormat : "%Y-%m-%d", plugi2n_insertdate_timeFormat : "%H:%M:%S", external_link_list_url : "example_link_list.js", external_image_list_url : "example_image_list.js", media_external_list_url : "example_media_list.js", file_browser_callback : "fileBrowserCallBack", paste_use_dialog : false, theme_advanced_resizing : true, theme_advanced_resize_horizontal : false, theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;", paste_auto_cleanup_on_paste : true, paste_convert_headers_to_strong : false, paste_strip_class_attributes : "all", paste_remove_spans : false, paste_remove_styles : false }); function fileBrowserCallBack(field_name, url, type, win) { // This is where you insert your custom filebrowser logic alert("Filebrowser callback: field_name: " + field_name + ", url: " + url + ", type: " + type); // Insert new URL, this would normaly be done in a popup win.document.forms[0].elements[field_name].value = "someurl.htm"; }</script><!-- /TinyMCE --><a href="example_full.htm">[Full featured example]</a> <a href="example_advanced.htm">[Advanced example]</a> <a href="example_simple.htm">[Simple example]</a> [Word example]<form method="post" action="http://tinymce.moxiecode.com/dump.php?example=true"> <h3>Word example</h3> This example shows you how TinyMCE can be configurated to function with Word content in the best possible way. TinyMCE is configured to auto convert/cleanup pasted Word content in this example. It's has also a custom CSS that makes paragraphs marginless as in Word.<br /><br /> <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 100%"> <p>Some paragraph</p> <p>Some other paragraph</p> <p>Some <b>element</b>, this is to be editor 1. <br /> This editor instance has a 100% width to it. <p>Some paragraph. <a href="http://www.sourceforge.net">Some link</a></p> <img src="logo.jpg"></p> </textarea> <br /> <input type="submit" name="save" value="Submit" /> <input type="reset" name="reset" value="Reset" /></form>
DOWNLOAD DO TYNIMCE
http://tinymce.moxiecode.com/download.php
OBS: já tentei usar o FCKEDITOR
e tentei usar AJAX pelo JQUERY
mais ambas com o mesmo erro
espero que alguem consiga me ajudar.
VALEO
Carregando comentários...