Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

rayfcrols

Problemas Instalação Plugins no Tinymce

Recommended Posts

Pessoal, com certeza não acontece só comigo, tem vários plugins que são muito bons e necessários e que não estou conseguindo fazer funcionar entre eles e principalmente o "imgmap", quando eu ativo ele não carrega o Tinymce abre somente o textarea com o código da pagina, vou postar as config do meu tiny:

 

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<!-- Load jQuery build -->
<script type="text/javascript" src="../includes/tiny_mce/jquery.tinymce.js"></script>
<script type="text/javascript" src="../includes/tiny_mce/plugins/tinybrowser/tb_tinymce.js.php"></script>
<script src="../includes/tiny_mce/tiny_mce_src.js" type="text/javascript"></script>
<script type="text/javascript">
tinyMCE.init({
		// General options
		mode : "textareas",
//		mode : "exact",
		theme : "advanced",
//		editor_deselector : "mceNoEditor",
		language: "pt",
		skin : "o2k7",
		skin_variant : "black",
		file_browser_callback : "tinyBrowser",
		//relative_urls : false,
		//remove_script_host : false,
		plugins : "safari,pagebreak,spellchecker,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,imgmap",

		// Theme options
		theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect,phpimage,|,imgmap,help",
		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,|,spellchecker",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		extended_valid_elements : "img[usemap|class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],map[id|name],area[shape|alt|coords|href|target]",

		// Example content CSS (should be your site CSS)
		content_css : "../includes/tiny_mce/css/content.css",

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "../includes/tiny_mce/lists/template_list.js",
		external_link_list_url : "../includes/tiny_mce/lists/link_list.js",
		external_image_list_url : "../includes/tiny_mce/lists/image_list.js",
		media_external_list_url : "../includes/tiny_mce/lists/media_list.js",
		
		// Style formats
		style_formats : [
			{title : 'Bold text', inline : 'b'},
			{title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},
			{title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},
			{title : 'Example 1', inline : 'span', classes : 'example1'},
			{title : 'Example 2', inline : 'span', classes : 'example2'},
			{title : 'Table styles'},
			{title : 'Table row 1', selector : 'tr', classes : 'tablerow1'},
			{title : 'Link PDF', selector  :  'a', classes  :  'Link-PDF' },
	        {title : 'Bold Class', selector  :  'strong', classes  :  'boldy' },
    	    {title : 'Link Web', inline  :  'a', classes  :  'Link-Web'},
			{title : 'List with arrows', selector  : 'ul', classes: 'linked'},
			{title : 'Paragraph with border', selector  : 'p', classes : 'bordered'},
			{title : 'Red background', selector  : 'p', classes : 'redbg'},
			{title : 'List with arrows', selector  : 'ul', classes: 'linked'},
			{title : 'Paragraph with border', selector  : 'p', classes : 'bordered'},
			{title : 'My Link Style', selector  : 'a', classes : 'mylinkstyle'}

		],
	
		// Replace values for the template plugin
		template_cdate_classes : "cdate creationdate",
		template_mdate_classes : "mdate modifieddate",
		template_selected_content_classes : "selcontent",
		template_cdate_format : "%d/%m/%Y : %H:%M:%S",
		template_mdate_format : "%d/%m/%Y : %H:%M:%S",
		template_replace_values : {
			username : "Raimundo Luiz",
			staffid : "7591183223"
		},
	autosave_ask_before_unload : false
	});
</script>

Compartilhar este post


Link para o post
Compartilhar em outros sites

ele gera algum erro ?

Compartilhar este post


Link para o post
Compartilhar em outros sites

Parece que meu Tinymce está sobre carregado ou não permite incluir mais plugins, pois não consigo ativar mais nenhum já tentei o insertdiv,youtube, etc..

Compartilhar este post


Link para o post
Compartilhar em outros sites

verifique se ele precisa de permissão para ativar certo plugins

Compartilhar este post


Link para o post
Compartilhar em outros sites

dá uma olhada aqui, pode te ajudar

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.