config_tinyMCE.js
3.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
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"
});