config_tinyMCE.js 3.86 KB
tinyMCE.init({
				entity_encoding : "raw",
				convert_urls : false,
				mode : "exact",
				elements : "tiny_full",
				theme : "advanced",
				extended_valid_elements : "more",//,BasisElementInline[mode]",
				plugins : "safari,table,link,emotions,visualchars,mc_image,mc_audio,mc_video,mc_more,mc_linklist,insertdatetime,blockquote,fullscreen",
				theme_advanced_disable : "formatselect,styleselect,hr",
				theme_advanced_buttons1_add : "fontselect,fontsizeselect,forecolorpicker,blockquote,|,bullist,numlist,table,charmap,emotions,|,mc_image,mc_audio,mc_video,mc_linklist,mc_more",
				theme_advanced_buttons2_add : "safari,removeformat,|,fullscreen",
				theme_advanced_buttons3 : "",
				width : "100%",
				height:"400px",
				setup : function(ed) {
	               	var is_default = false;
   			       	ed.onInit.add(function(ed) {
						var cont = ed.getContent();
						var cont_default = cont.substr(3,1);
						is_default = (cont_default == " ");
						if(!is_default){
							var values = cont.split("<!--more");
							if(values.length > 1){
								var string='<a href=" ">[mehr...]</a><!--more';
								ed.setContent(values[0]+string+values[1]);
							}
						}
               		});
					ed.onMouseDown.add(function(ed,e) {
						ed.focus();
						var cont = ed.getContent();
						var cont_default = cont.substr(3,1);
						if (!is_default) return ;
						if(cont_default == " ")
							ed.setContent("");
						is_default = false;
					});
           		}
	});

tinyMCE.init({
				entity_encoding : "raw",
				convert_urls : false,
				mode : "exact",
				elements : "tiny_small",
				theme : "advanced",
				plugins : "safari,emotions,visualchars,mc_image,mc_audio,mc_video,blockquote",
				theme_advanced_disable : "bullist,numlist,justifyleft,justifycenter,justifyright,justifyfull,formatselect,styleselect,outdent,indent,sub,sup,anchor,hr,visualaid,|",
				theme_advanced_buttons1_add : "|charmap,link,emotions,blockquote,|,mc_image,mc_audio,mc_video",
				theme_advanced_buttons2_add : "safari,removeformat",
				theme_advanced_buttons3	:	"",
				//theme_advanced_buttons3_add : "charmap,advlink,emotions,|,mc_image,mc_audio,mc_video",
				width : "100%",
				height:"100px",
				forced_root_block : 'p',
				setup : function(ed) {
	               	var is_default = false;
   			       	ed.onInit.add(function(ed) {
						var cont = ed.getContent();
						cont = cont.substring(3,cont.length-4);
						is_default = (cont == "Kommentar schreiben ...");
               		});
					ed.onMouseDown.add(function(ed,e) {
						ed.focus();
						if (!is_default) return ;
						ed.setContent("");
						is_default = false;
					});
           		}
			});
tinyMCE.init({
	entity_encoding : "raw",
	convert_urls : false,
	mode : "exact",
	elements : "tiny_misc",
	theme : "advanced",
	plugins : "safari,link,emotions,visualchars,mc_image,mc_audio,mc_video",
	theme_advanced_disable : "justifyleft,justifycenter,justifyright,justifyfull,formatselect,styleselect,outdent,indent,sub,sup,anchor,visualaid,|",
	theme_advanced_buttons1_add : "fontsizeselect,forecolorpicker",
	theme_advanced_buttons2_add : "safari,removeformat",
	theme_advanced_buttons3	:	"charmap,link,mc_image,mc_audio,mc_video",
	//theme_advanced_buttons3_add : "charmap,advlink,emotions,|,mc_image,mc_audio,mc_video",
	width : "100%",
	height:"300px"

});
tinyMCE.init({
				entity_encoding : "raw",
				convert_urls : false,
				mode : "exact",
				elements : "tiny_tiny",
				theme : "advanced",
				extended_valid_elements : "more",
				plugins : "safari,link,emotions,visualchars,mc_image",
				theme_advanced_disable : "bullist,numlist,justifyleft,justifycenter,justifyright,justifyfull,formatselect,styleselect,outdent,indent,sub,sup,anchor,hr,visualaid,|",
				theme_advanced_buttons1_add : "|,charmap,link,emotions,|,mc_image",
				theme_advanced_buttons2_add : "safari,removeformat",
				theme_advanced_buttons3	:	"",
				width : "100%",
				height:"100px"
			});