Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Pessoal estou com um problemão :S
Estou usando o editor tiny_mce só que ele não está salvando corretamente todo o texto que eu coloco dentro dele... ele está cortando os textos pela metade.
meu codigo:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="[http://www.w3.org/1999/xhtml"](http://www.w3.org/1999/xhtml) lang="pt-br">
<head>
<title>Grupo Vida Brasil</title>
<meta name="description" content="NONE" />
<meta name="keywords" content="xbox" />
<meta name="author" content="Estevão Augusto Jordão" />
<meta name="MSSmartTagsPreventParsing" content="true" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="robots" content="all" />
<meta http-equiv="content-language" content="pt-br" />
<meta name="ICBM" content="-22.976781,-43.193082" />
<meta name="DC.title" content="Grupo Vida" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="all">
</style>
<script type="text/javascript" src="../scripts/jquery/jquery-1.3.2.js"></script>
<script type="text/javascript" src="../scripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="../scripts/jquery/thickbox.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,autosave,advlist,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,imagemanager,filemanager",
theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,restoredraft,|,insertfile,insertimage",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
relative_urls : false,
convert_urls : false,
content_css : "css/example.css",
// Drop lists for link/image/media/template dialogs
template_external_list_url : "js/template_list.js",
external_link_list_url : "js/link_list.js",
external_image_list_url : "js/image_list.js",
media_external_list_url : "js/media_list.js",
// Replace values for the template plugin
template_replace_values : {
username : "Some User",
staffid : "991234"
},
autosave_ask_before_unload : false
});
</script>
<body>
<form method="post" action="../../controller/EditorController.php?tipo=<?php echo $_GET['tipo']?>&id=<?php echo $_GET['id']?>&acao=<?php echo $_GET['acao']?>">
<p align="left" style="color: #3d98ff; margin:0px; padding: 0px; font-family: arial;font-weight: bold;">
<label for="tituloEditor" class="txtLabel">Título:</label>
</p>
<p style=" position: absolute; top: -10px; left: 70px;">
<input name="tituloEditor" type="text" size="121px" value="<?php echo $_GET['title']?>">
</p>
<p>
<textarea name="content" style="width:100%; height:600px;">
<?php echo $_GET['content']?>
</textarea>
</p>
<input value="salvar" type="submit" id="signin_submit"></p>
</form>
</body>
</html>
Se alguem poder ajudar :P tenho que resolver isto o mais rapido possivel :S
Carregando comentários...