Jump to content


Photo

Tinymce E Jquery


  • Faça o login para participar
3 replies to this topic

#1 anave

anave

    Normal

  • Usuários
  • 107 posts
  • Sexo:Masculino
  • Localidade:Salvador

Posted 03/11/2010, 14:21

Pessoal, utilizo o jquery e agora tô tentando utilizar o tinymce, mas me parece que a função que chama o tinymce ñ está sendo axecutada quando utilizo com o jquery, fiz algumas pesquisas mas ainda ñ consegui sair do lugar, tô fazendo assim:
index.php
<script src="admin/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="admin/jscripts/tiny_mce/tiny_mce.js"></script>  

no arquivo que preciso que devo utilizar o tinymce
<head>
<script type="text/javascript">
		<!--
			
			tinyMCE.init({
						 
				// General options

				mode : "textareas",
				theme : "advanced",
				plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",

				// Theme options
				theme_advanced_buttons1 : "save,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect,|,fullscreen,|,cut,copy,paste,pastetext,pasteword,|,search,replace",
				
				
				theme_advanced_buttons2 : "",
				theme_advanced_buttons3 : "",
				 
				theme_advanced_toolbar_location : "top",
				theme_advanced_toolbar_align : "left",
				theme_advanced_statusbar_location : "bottom",
				theme_advanced_resizing : true,

				// Example content CSS (should be your site CSS)
				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"
				}
			});
		//-->
	
	</script>
</head>
<form action="op_rimage_di.php" method="post">
<div class="texto">
  <fieldset>
    <textarea name="textarea" cols="95" rows="33" id="textarea"></textarea>
  </fieldset> 
</div>
</form>


#2 André Manoel

André Manoel

    Doutor

  • Usuários
  • 996 posts
  • Sexo:Masculino
  • Localidade:Brasilia

Posted 04/11/2010, 13:35

Verifique no firefox na aba :

ferramentas - console de erros

Se está acontencendo algum erro de javascript.
Iniciando na Ajuda On line...

Posted Image Meu post lhe ajudou? Reputar/votar é uma das formas de agradecer.

#3 anave

anave

    Normal

  • Usuários
  • 107 posts
  • Sexo:Masculino
  • Localidade:Salvador

Posted 04/11/2010, 14:17

Vlw, eu decidi usar o fckeditor.
Tô com um problema com ele, mas irei postar em outro tópico.

#4 André Manoel

André Manoel

    Doutor

  • Usuários
  • 996 posts
  • Sexo:Masculino
  • Localidade:Brasilia

Posted 05/11/2010, 17:16

O CKEditor também é muito bom.
Iniciando na Ajuda On line...

Posted Image Meu post lhe ajudou? Reputar/votar é uma das formas de agradecer.




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq