tinymce-rails 3.4.4.0.2 → 3.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/assets/precompiled/tinymce/langs/en.js +1 -223
- data/assets/precompiled/tinymce/plugins/advhr/langs/en_dlg.js +1 -7
- data/assets/precompiled/tinymce/plugins/advimage/js/image.js +7 -3
- data/assets/precompiled/tinymce/plugins/advimage/langs/en_dlg.js +1 -45
- data/assets/precompiled/tinymce/plugins/advlink/langs/en_dlg.js +1 -54
- data/assets/precompiled/tinymce/plugins/autolink/editor_plugin.js +1 -1
- data/assets/precompiled/tinymce/plugins/autolink/editor_plugin_src.js +1 -1
- data/assets/precompiled/tinymce/plugins/emotions/langs/en_dlg.js +1 -20
- data/assets/precompiled/tinymce/plugins/fullpage/editor_plugin.js +1 -1
- data/assets/precompiled/tinymce/plugins/fullpage/editor_plugin_src.js +9 -3
- data/assets/precompiled/tinymce/plugins/fullpage/langs/en_dlg.js +1 -85
- data/assets/precompiled/tinymce/plugins/fullscreen/editor_plugin.js +1 -1
- data/assets/precompiled/tinymce/plugins/fullscreen/editor_plugin_src.js +2 -2
- data/assets/precompiled/tinymce/plugins/fullscreen/fullscreen.htm +2 -1
- data/assets/precompiled/tinymce/plugins/lists/editor_plugin.js +1 -1
- data/assets/precompiled/tinymce/plugins/lists/editor_plugin_src.js +12 -0
- data/assets/precompiled/tinymce/plugins/media/langs/en_dlg.js +1 -112
- data/assets/precompiled/tinymce/plugins/media/media.htm +1 -1
- data/assets/precompiled/tinymce/plugins/nonbreaking/editor_plugin.js +1 -1
- data/assets/precompiled/tinymce/plugins/nonbreaking/editor_plugin_src.js +3 -2
- data/assets/precompiled/tinymce/plugins/paste/editor_plugin.js +1 -1
- data/assets/precompiled/tinymce/plugins/paste/editor_plugin_src.js +21 -102
- data/assets/precompiled/tinymce/plugins/paste/langs/en_dlg.js +1 -5
- data/assets/precompiled/tinymce/plugins/searchreplace/langs/en_dlg.js +1 -16
- data/assets/precompiled/tinymce/plugins/style/langs/en_dlg.js +1 -70
- data/assets/precompiled/tinymce/plugins/table/editor_plugin.js +1 -1
- data/assets/precompiled/tinymce/plugins/table/editor_plugin_src.js +3 -2
- data/assets/precompiled/tinymce/plugins/table/langs/en_dlg.js +1 -75
- data/assets/precompiled/tinymce/plugins/template/langs/en_dlg.js +1 -15
- data/assets/precompiled/tinymce/plugins/xhtmlxtras/langs/en_dlg.js +1 -32
- data/assets/precompiled/tinymce/themes/advanced/js/image.js +7 -3
- data/assets/precompiled/tinymce/themes/advanced/langs/en.js +1 -68
- data/assets/precompiled/tinymce/themes/advanced/langs/en_dlg.js +1 -54
- data/assets/precompiled/tinymce/themes/advanced/skins/default/content.css +1 -0
- data/assets/precompiled/tinymce/themes/advanced/skins/highcontrast/content.css +1 -0
- data/assets/precompiled/tinymce/themes/advanced/skins/o2k7/content.css +1 -0
- data/assets/precompiled/tinymce/themes/simple/langs/en.js +1 -11
- data/assets/precompiled/tinymce/tiny_mce.js +1 -1
- data/assets/precompiled/tinymce/tiny_mce_jquery.js +1 -1
- data/assets/precompiled/tinymce/tiny_mce_jquery_src.js +269 -171
- data/assets/precompiled/tinymce/tiny_mce_src.js +269 -171
- data/assets/precompiled/tinymce/utils/editable_selects.js +1 -1
- data/assets/vendor/tinymce/tiny_mce.js +269 -171
- data/assets/vendor/tinymce/tiny_mce_jquery.js +269 -171
- data/lib/tinymce/version.rb +2 -2
- metadata +6 -6
@@ -1,223 +1 @@
|
|
1
|
-
tinyMCE.addI18n({en:{
|
2
|
-
common:{
|
3
|
-
edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?",
|
4
|
-
apply:"Apply",
|
5
|
-
insert:"Insert",
|
6
|
-
update:"Update",
|
7
|
-
cancel:"Cancel",
|
8
|
-
close:"Close",
|
9
|
-
browse:"Browse",
|
10
|
-
class_name:"Class",
|
11
|
-
not_set:"-- Not set --",
|
12
|
-
clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?",
|
13
|
-
clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.",
|
14
|
-
popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.",
|
15
|
-
invalid_data:"{#field} is invalid",
|
16
|
-
invalid_data_number:"{#field} must be a number",
|
17
|
-
invalid_data_min:"{#field} must be a number greater than {#min}",
|
18
|
-
invalid_data_size:"{#field} must be a number or percentage",
|
19
|
-
more_colors:"More colors"
|
20
|
-
},
|
21
|
-
colors:{
|
22
|
-
'000000':'Black',
|
23
|
-
'993300':'Burnt orange',
|
24
|
-
'333300':'Dark olive',
|
25
|
-
'003300':'Dark green',
|
26
|
-
'003366':'Dark azure',
|
27
|
-
'000080':'Navy Blue',
|
28
|
-
'333399':'Indigo',
|
29
|
-
'333333':'Very dark gray',
|
30
|
-
'800000':'Maroon',
|
31
|
-
'FF6600':'Orange',
|
32
|
-
'808000':'Olive',
|
33
|
-
'008000':'Green',
|
34
|
-
'008080':'Teal',
|
35
|
-
'0000FF':'Blue',
|
36
|
-
'666699':'Grayish blue',
|
37
|
-
'808080':'Gray',
|
38
|
-
'FF0000':'Red',
|
39
|
-
'FF9900':'Amber',
|
40
|
-
'99CC00':'Yellow green',
|
41
|
-
'339966':'Sea green',
|
42
|
-
'33CCCC':'Turquoise',
|
43
|
-
'3366FF':'Royal blue',
|
44
|
-
'800080':'Purple',
|
45
|
-
'999999':'Medium gray',
|
46
|
-
'FF00FF':'Magenta',
|
47
|
-
'FFCC00':'Gold',
|
48
|
-
'FFFF00':'Yellow',
|
49
|
-
'00FF00':'Lime',
|
50
|
-
'00FFFF':'Aqua',
|
51
|
-
'00CCFF':'Sky blue',
|
52
|
-
'993366':'Brown',
|
53
|
-
'C0C0C0':'Silver',
|
54
|
-
'FF99CC':'Pink',
|
55
|
-
'FFCC99':'Peach',
|
56
|
-
'FFFF99':'Light yellow',
|
57
|
-
'CCFFCC':'Pale green',
|
58
|
-
'CCFFFF':'Pale cyan',
|
59
|
-
'99CCFF':'Light sky blue',
|
60
|
-
'CC99FF':'Plum',
|
61
|
-
'FFFFFF':'White'
|
62
|
-
},
|
63
|
-
contextmenu:{
|
64
|
-
align:"Alignment",
|
65
|
-
left:"Left",
|
66
|
-
center:"Center",
|
67
|
-
right:"Right",
|
68
|
-
full:"Full"
|
69
|
-
},
|
70
|
-
insertdatetime:{
|
71
|
-
date_fmt:"%Y-%m-%d",
|
72
|
-
time_fmt:"%H:%M:%S",
|
73
|
-
insertdate_desc:"Insert date",
|
74
|
-
inserttime_desc:"Insert time",
|
75
|
-
months_long:"January,February,March,April,May,June,July,August,September,October,November,December",
|
76
|
-
months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
|
77
|
-
day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
|
78
|
-
day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"
|
79
|
-
},
|
80
|
-
print:{
|
81
|
-
print_desc:"Print"
|
82
|
-
},
|
83
|
-
preview:{
|
84
|
-
preview_desc:"Preview"
|
85
|
-
},
|
86
|
-
directionality:{
|
87
|
-
ltr_desc:"Direction left to right",
|
88
|
-
rtl_desc:"Direction right to left"
|
89
|
-
},
|
90
|
-
layer:{
|
91
|
-
insertlayer_desc:"Insert new layer",
|
92
|
-
forward_desc:"Move forward",
|
93
|
-
backward_desc:"Move backward",
|
94
|
-
absolute_desc:"Toggle absolute positioning",
|
95
|
-
content:"New layer..."
|
96
|
-
},
|
97
|
-
save:{
|
98
|
-
save_desc:"Save",
|
99
|
-
cancel_desc:"Cancel all changes"
|
100
|
-
},
|
101
|
-
nonbreaking:{
|
102
|
-
nonbreaking_desc:"Insert non-breaking space character"
|
103
|
-
},
|
104
|
-
iespell:{
|
105
|
-
iespell_desc:"Run spell checking",
|
106
|
-
download:"ieSpell not detected. Do you want to install it now?"
|
107
|
-
},
|
108
|
-
advhr:{
|
109
|
-
advhr_desc:"Horizontal rule"
|
110
|
-
},
|
111
|
-
emotions:{
|
112
|
-
emotions_desc:"Emotions"
|
113
|
-
},
|
114
|
-
searchreplace:{
|
115
|
-
search_desc:"Find",
|
116
|
-
replace_desc:"Find/Replace"
|
117
|
-
},
|
118
|
-
advimage:{
|
119
|
-
image_desc:"Insert/edit image"
|
120
|
-
},
|
121
|
-
advlink:{
|
122
|
-
link_desc:"Insert/edit link"
|
123
|
-
},
|
124
|
-
xhtmlxtras:{
|
125
|
-
cite_desc:"Citation",
|
126
|
-
abbr_desc:"Abbreviation",
|
127
|
-
acronym_desc:"Acronym",
|
128
|
-
del_desc:"Deletion",
|
129
|
-
ins_desc:"Insertion",
|
130
|
-
attribs_desc:"Insert/Edit Attributes"
|
131
|
-
},
|
132
|
-
style:{
|
133
|
-
desc:"Edit CSS Style"
|
134
|
-
},
|
135
|
-
paste:{
|
136
|
-
paste_text_desc:"Paste as Plain Text",
|
137
|
-
paste_word_desc:"Paste from Word",
|
138
|
-
selectall_desc:"Select All",
|
139
|
-
plaintext_mode_sticky:"Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.",
|
140
|
-
plaintext_mode:"Paste is now in plain text mode. Click again to toggle back to regular paste mode."
|
141
|
-
},
|
142
|
-
paste_dlg:{
|
143
|
-
text_title:"Use CTRL+V on your keyboard to paste the text into the window.",
|
144
|
-
text_linebreaks:"Keep linebreaks",
|
145
|
-
word_title:"Use CTRL+V on your keyboard to paste the text into the window."
|
146
|
-
},
|
147
|
-
table:{
|
148
|
-
desc:"Inserts a new table",
|
149
|
-
row_before_desc:"Insert row before",
|
150
|
-
row_after_desc:"Insert row after",
|
151
|
-
delete_row_desc:"Delete row",
|
152
|
-
col_before_desc:"Insert column before",
|
153
|
-
col_after_desc:"Insert column after",
|
154
|
-
delete_col_desc:"Remove column",
|
155
|
-
split_cells_desc:"Split merged table cells",
|
156
|
-
merge_cells_desc:"Merge table cells",
|
157
|
-
row_desc:"Table row properties",
|
158
|
-
cell_desc:"Table cell properties",
|
159
|
-
props_desc:"Table properties",
|
160
|
-
paste_row_before_desc:"Paste table row before",
|
161
|
-
paste_row_after_desc:"Paste table row after",
|
162
|
-
cut_row_desc:"Cut table row",
|
163
|
-
copy_row_desc:"Copy table row",
|
164
|
-
del:"Delete table",
|
165
|
-
row:"Row",
|
166
|
-
col:"Column",
|
167
|
-
cell:"Cell"
|
168
|
-
},
|
169
|
-
autosave:{
|
170
|
-
unload_msg:"The changes you made will be lost if you navigate away from this page.",
|
171
|
-
restore_content:"Restore auto-saved content.",
|
172
|
-
warning_message:"If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?."
|
173
|
-
},
|
174
|
-
fullscreen:{
|
175
|
-
desc:"Toggle fullscreen mode"
|
176
|
-
},
|
177
|
-
media:{
|
178
|
-
desc:"Insert / edit embedded media",
|
179
|
-
edit:"Edit embedded media"
|
180
|
-
},
|
181
|
-
fullpage:{
|
182
|
-
desc:"Document properties"
|
183
|
-
},
|
184
|
-
template:{
|
185
|
-
desc:"Insert predefined template content"
|
186
|
-
},
|
187
|
-
visualchars:{
|
188
|
-
desc:"Visual control characters on/off."
|
189
|
-
},
|
190
|
-
spellchecker:{
|
191
|
-
desc:"Toggle spellchecker",
|
192
|
-
menu:"Spellchecker settings",
|
193
|
-
ignore_word:"Ignore word",
|
194
|
-
ignore_words:"Ignore all",
|
195
|
-
langs:"Languages",
|
196
|
-
wait:"Please wait...",
|
197
|
-
sug:"Suggestions",
|
198
|
-
no_sug:"No suggestions",
|
199
|
-
no_mpell:"No misspellings found.",
|
200
|
-
learn_word:"Learn word"
|
201
|
-
},
|
202
|
-
pagebreak:{
|
203
|
-
desc:"Insert page break."
|
204
|
-
},
|
205
|
-
advlist:{
|
206
|
-
types:"Types",
|
207
|
-
def:"Default",
|
208
|
-
lower_alpha:"Lower alpha",
|
209
|
-
lower_greek:"Lower greek",
|
210
|
-
lower_roman:"Lower roman",
|
211
|
-
upper_alpha:"Upper alpha",
|
212
|
-
upper_roman:"Upper roman",
|
213
|
-
circle:"Circle",
|
214
|
-
disc:"Disc",
|
215
|
-
square:"Square"
|
216
|
-
},
|
217
|
-
aria:{
|
218
|
-
rich_text_area:"Rich Text Area"
|
219
|
-
},
|
220
|
-
wordcount:{
|
221
|
-
words: 'Words: '
|
222
|
-
}
|
223
|
-
}});
|
1
|
+
tinyMCE.addI18n({en:{common:{"more_colors":"More Colors...","invalid_data":"Error: Invalid values entered, these are marked in red.","popup_blocked":"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.","clipboard_no_support":"Currently not supported by your browser, use keyboard shortcuts instead.","clipboard_msg":"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?","not_set":"-- Not Set --","class_name":"Class",browse:"Browse",close:"Close",cancel:"Cancel",update:"Update",insert:"Insert",apply:"Apply","edit_confirm":"Do you want to use the WYSIWYG mode for this textarea?","invalid_data_number":"{#field} must be a number","invalid_data_min":"{#field} must be a number greater than {#min}","invalid_data_size":"{#field} must be a number or percentage",value:"(value)"},contextmenu:{full:"Full",right:"Right",center:"Center",left:"Left",align:"Alignment"},insertdatetime:{"day_short":"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun","day_long":"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday","months_short":"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec","months_long":"January,February,March,April,May,June,July,August,September,October,November,December","inserttime_desc":"Insert Time","insertdate_desc":"Insert Date","time_fmt":"%H:%M:%S","date_fmt":"%Y-%m-%d"},print:{"print_desc":"Print"},preview:{"preview_desc":"Preview"},directionality:{"rtl_desc":"Direction Right to Left","ltr_desc":"Direction Left to Right"},layer:{content:"New layer...","absolute_desc":"Toggle Absolute Positioning","backward_desc":"Move Backward","forward_desc":"Move Forward","insertlayer_desc":"Insert New Layer"},save:{"save_desc":"Save","cancel_desc":"Cancel All Changes"},nonbreaking:{"nonbreaking_desc":"Insert Non-Breaking Space Character"},iespell:{download:"ieSpell not detected. Do you want to install it now?","iespell_desc":"Check Spelling"},advhr:{"delta_height":"","delta_width":"","advhr_desc":"Insert Horizontal Line"},emotions:{"delta_height":"","delta_width":"","emotions_desc":"Emotions"},searchreplace:{"replace_desc":"Find/Replace","delta_width":"","delta_height":"","search_desc":"Find"},advimage:{"delta_width":"","image_desc":"Insert/Edit Image","delta_height":""},advlink:{"delta_height":"","delta_width":"","link_desc":"Insert/Edit Link"},xhtmlxtras:{"attribs_delta_height":"","attribs_delta_width":"","ins_delta_height":"","ins_delta_width":"","del_delta_height":"","del_delta_width":"","acronym_delta_height":"","acronym_delta_width":"","abbr_delta_height":"","abbr_delta_width":"","cite_delta_height":"","cite_delta_width":"","attribs_desc":"Insert/Edit Attributes","ins_desc":"Insertion","del_desc":"Deletion","acronym_desc":"Acronym","abbr_desc":"Abbreviation","cite_desc":"Citation"},style:{"delta_height":"","delta_width":"",desc:"Edit CSS Style"},paste:{"plaintext_mode_stick":"Paste is now in plain text mode. Click again to toggle back to regular paste mode.","plaintext_mode":"Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.","selectall_desc":"Select All","paste_word_desc":"Paste from Word","paste_text_desc":"Paste as Plain Text"},"paste_dlg":{"word_title":"Use Ctrl+V on your keyboard to paste the text into the window.","text_linebreaks":"Keep Linebreaks","text_title":"Use Ctrl+V on your keyboard to paste the text into the window."},table:{"merge_cells_delta_height":"","merge_cells_delta_width":"","table_delta_height":"","table_delta_width":"","cellprops_delta_height":"","cellprops_delta_width":"","rowprops_delta_height":"","rowprops_delta_width":"",cell:"Cell",col:"Column",row:"Row",del:"Delete Table","copy_row_desc":"Copy Table Row","cut_row_desc":"Cut Table Row","paste_row_after_desc":"Paste Table Row After","paste_row_before_desc":"Paste Table Row Before","props_desc":"Table Properties","cell_desc":"Table Cell Properties","row_desc":"Table Row Properties","merge_cells_desc":"Merge Table Cells","split_cells_desc":"Split Merged Table Cells","delete_col_desc":"Delete Column","col_after_desc":"Insert Column After","col_before_desc":"Insert Column Before","delete_row_desc":"Delete Row","row_after_desc":"Insert Row After","row_before_desc":"Insert Row Before",desc:"Insert/Edit Table"},autosave:{"warning_message":"If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?","restore_content":"Restore auto-saved content.","unload_msg":"The changes you made will be lost if you navigate away from this page."},fullscreen:{desc:"Toggle Full Screen Mode"},media:{"delta_height":"","delta_width":"",edit:"Edit Embedded Media",desc:"Insert/Edit Embedded Media"},fullpage:{desc:"Document Properties","delta_width":"","delta_height":""},template:{desc:"Insert Predefined Template Content"},visualchars:{desc:"Show/Hide Visual Control Characters"},spellchecker:{desc:"Toggle Spell Checker",menu:"Spell Checker Settings","ignore_word":"Ignore Word","ignore_words":"Ignore All",langs:"Languages",wait:"Please wait...",sug:"Suggestions","no_sug":"No Suggestions","no_mpell":"No misspellings found.","learn_word":"Learn word"},pagebreak:{desc:"Insert Page Break for Printing"},advlist:{types:"Types",def:"Default","lower_alpha":"Lower Alpha","lower_greek":"Lower Greek","lower_roman":"Lower Roman","upper_alpha":"Upper Alpha","upper_roman":"Upper Roman",circle:"Circle",disc:"Disc",square:"Square"},colors:{"333300":"Dark olive","993300":"Burnt orange","000000":"Black","003300":"Dark green","003366":"Dark azure","000080":"Navy Blue","333399":"Indigo","333333":"Very dark gray","800000":"Maroon",FF6600:"Orange","808000":"Olive","008000":"Green","008080":"Teal","0000FF":"Blue","666699":"Grayish blue","808080":"Gray",FF0000:"Red",FF9900:"Amber","99CC00":"Yellow green","339966":"Sea green","33CCCC":"Turquoise","3366FF":"Royal blue","800080":"Purple","999999":"Medium gray",FF00FF:"Magenta",FFCC00:"Gold",FFFF00:"Yellow","00FF00":"Lime","00FFFF":"Aqua","00CCFF":"Sky blue","993366":"Brown",C0C0C0:"Silver",FF99CC:"Pink",FFCC99:"Peach",FFFF99:"Light yellow",CCFFCC:"Pale green",CCFFFF:"Pale cyan","99CCFF":"Light sky blue",CC99FF:"Plum",FFFFFF:"White"},aria:{"rich_text_area":"Rich Text Area"},wordcount:{words:"Words"}}});
|
@@ -171,9 +171,13 @@ var ImageDialog = {
|
|
171
171
|
if (el && el.nodeName == 'IMG') {
|
172
172
|
ed.dom.setAttribs(el, args);
|
173
173
|
} else {
|
174
|
-
|
175
|
-
|
176
|
-
|
174
|
+
tinymce.each(args, function(value, name) {
|
175
|
+
if (value === "") {
|
176
|
+
delete args[name];
|
177
|
+
}
|
178
|
+
});
|
179
|
+
|
180
|
+
ed.execCommand('mceInsertContent', false, tinyMCEPopup.editor.dom.createHTML('img', args), {skip_undo : 1});
|
177
181
|
ed.undoManager.add();
|
178
182
|
}
|
179
183
|
|
@@ -1,45 +1 @@
|
|
1
|
-
tinyMCE.addI18n('en.advimage_dlg',{
|
2
|
-
tab_general:"General",
|
3
|
-
tab_appearance:"Appearance",
|
4
|
-
tab_advanced:"Advanced",
|
5
|
-
general:"General",
|
6
|
-
title:"Title",
|
7
|
-
preview:"Preview",
|
8
|
-
constrain_proportions:"Constrain proportions",
|
9
|
-
langdir:"Language direction",
|
10
|
-
langcode:"Language code",
|
11
|
-
long_desc:"Long description link",
|
12
|
-
style:"Style",
|
13
|
-
classes:"Classes",
|
14
|
-
ltr:"Left to right",
|
15
|
-
rtl:"Right to left",
|
16
|
-
id:"Id",
|
17
|
-
map:"Image map",
|
18
|
-
swap_image:"Swap image",
|
19
|
-
alt_image:"Alternative image",
|
20
|
-
mouseover:"for mouse over",
|
21
|
-
mouseout:"for mouse out",
|
22
|
-
misc:"Miscellaneous",
|
23
|
-
example_img:"Appearance preview image",
|
24
|
-
missing_alt:"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.",
|
25
|
-
dialog_title:"Insert/edit image",
|
26
|
-
src:"Image URL",
|
27
|
-
alt:"Image description",
|
28
|
-
list:"Image list",
|
29
|
-
border:"Border",
|
30
|
-
dimensions:"Dimensions",
|
31
|
-
width:"Width",
|
32
|
-
height:"Height",
|
33
|
-
vspace:"Vertical space",
|
34
|
-
hspace:"Horizontal space",
|
35
|
-
align:"Alignment",
|
36
|
-
align_baseline:"Baseline",
|
37
|
-
align_top:"Top",
|
38
|
-
align_middle:"Middle",
|
39
|
-
align_bottom:"Bottom",
|
40
|
-
align_texttop:"Text top",
|
41
|
-
align_textbottom:"Text bottom",
|
42
|
-
align_left:"Left",
|
43
|
-
align_right:"Right",
|
44
|
-
image_list:"Image list"
|
45
|
-
});
|
1
|
+
tinyMCE.addI18n('en.advimage_dlg',{"image_list":"Image List","align_right":"Right","align_left":"Left","align_textbottom":"Text Bottom","align_texttop":"Text Top","align_bottom":"Bottom","align_middle":"Middle","align_top":"Top","align_baseline":"Baseline",align:"Alignment",hspace:"Horizontal Space",vspace:"Vertical Space",dimensions:"Dimensions",border:"Border",list:"Image List",alt:"Image Description",src:"Image URL","dialog_title":"Insert/Edit Image","missing_alt":"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.","example_img":"Appearance Preview Image",misc:"Miscellaneous",mouseout:"For Mouse Out",mouseover:"For Mouse Over","alt_image":"Alternative Image","swap_image":"Swap Image",map:"Image Map",id:"ID",rtl:"Right to Left",ltr:"Left to Right",classes:"Classes",style:"Style","long_desc":"Long Description Link",langcode:"Language Code",langdir:"Language Direction","constrain_proportions":"Constrain Proportions",preview:"Preview",title:"Title",general:"General","tab_advanced":"Advanced","tab_appearance":"Appearance","tab_general":"General",width:"Width",height:"Height"});
|
@@ -1,54 +1 @@
|
|
1
|
-
tinyMCE.addI18n('en.advlink_dlg',{
|
2
|
-
title:"Insert/edit link",
|
3
|
-
url:"Link URL",
|
4
|
-
target:"Target",
|
5
|
-
titlefield:"Title",
|
6
|
-
is_email:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",
|
7
|
-
is_external:"The URL you entered seems to be an external link. Do you want to add the required http:// prefix?",
|
8
|
-
list:"Link list",
|
9
|
-
general_tab:"General",
|
10
|
-
popup_tab:"Popup",
|
11
|
-
events_tab:"Events",
|
12
|
-
advanced_tab:"Advanced",
|
13
|
-
general_props:"General properties",
|
14
|
-
popup_props:"Popup properties",
|
15
|
-
event_props:"Events",
|
16
|
-
advanced_props:"Advanced properties",
|
17
|
-
popup_opts:"Options",
|
18
|
-
anchor_names:"Anchors",
|
19
|
-
target_same:"Open in this window / frame",
|
20
|
-
target_parent:"Open in parent window / frame",
|
21
|
-
target_top:"Open in top frame (replaces all frames)",
|
22
|
-
target_blank:"Open in new window",
|
23
|
-
popup:"Javascript popup",
|
24
|
-
popup_url:"Popup URL",
|
25
|
-
popup_name:"Window name",
|
26
|
-
popup_return:"Insert 'return false'",
|
27
|
-
popup_scrollbars:"Show scrollbars",
|
28
|
-
popup_statusbar:"Show status bar",
|
29
|
-
popup_toolbar:"Show toolbars",
|
30
|
-
popup_menubar:"Show menu bar",
|
31
|
-
popup_location:"Show location bar",
|
32
|
-
popup_resizable:"Make window resizable",
|
33
|
-
popup_dependent:"Dependent (Mozilla/Firefox only)",
|
34
|
-
popup_size:"Size",
|
35
|
-
width:"Width",
|
36
|
-
height:"Height",
|
37
|
-
popup_position:"Position (X/Y)",
|
38
|
-
id:"Id",
|
39
|
-
style:"Style",
|
40
|
-
classes:"Classes",
|
41
|
-
target_name:"Target name",
|
42
|
-
langdir:"Language direction",
|
43
|
-
target_langcode:"Target language",
|
44
|
-
langcode:"Language code",
|
45
|
-
encoding:"Target character encoding",
|
46
|
-
mime:"Target MIME type",
|
47
|
-
rel:"Relationship page to target",
|
48
|
-
rev:"Relationship target to page",
|
49
|
-
tabindex:"Tabindex",
|
50
|
-
accesskey:"Accesskey",
|
51
|
-
ltr:"Left to right",
|
52
|
-
rtl:"Right to left",
|
53
|
-
link_list:"Link list"
|
54
|
-
});
|
1
|
+
tinyMCE.addI18n('en.advlink_dlg',{"target_name":"Target Name",classes:"Classes",style:"Style",id:"ID","popup_position":"Position (X/Y)",langdir:"Language Direction","popup_size":"Size","popup_dependent":"Dependent (Mozilla/Firefox Only)","popup_resizable":"Make Window Resizable","popup_location":"Show Location Bar","popup_menubar":"Show Menu Bar","popup_toolbar":"Show Toolbars","popup_statusbar":"Show Status Bar","popup_scrollbars":"Show Scrollbars","popup_return":"Insert \'return false\'","popup_name":"Window Name","popup_url":"Popup URL",popup:"JavaScript Popup","target_blank":"Open in New Window","target_top":"Open in Top Frame (Replaces All Frames)","target_parent":"Open in Parent Window/Frame","target_same":"Open in This Window/Frame","anchor_names":"Anchors","popup_opts":"Options","advanced_props":"Advanced Properties","event_props":"Events","popup_props":"Popup Properties","general_props":"General Properties","advanced_tab":"Advanced","events_tab":"Events","popup_tab":"Popup","general_tab":"General",list:"Link List","is_external":"The URL you entered seems to be an external link. Do you want to add the required http:// prefix?","is_email":"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",titlefield:"Title",target:"Target",url:"Link URL",title:"Insert/Edit Link","link_list":"Link List",rtl:"Right to Left",ltr:"Left to Right",accesskey:"AccessKey",tabindex:"TabIndex",rev:"Relationship Target to Page",rel:"Relationship Page to Target",mime:"Target MIME Type",encoding:"Target Character Encoding",langcode:"Language Code","target_langcode":"Target Language",width:"Width",height:"Height"});
|
@@ -1 +1 @@
|
|
1
|
-
(function(){tinymce.create("tinymce.plugins.AutolinkPlugin",{init:function(a,b){var c=this;if(tinyMCE.isIE){return}a.onKeyDown.add(function(d,f){if(f.keyCode==13){return c.handleEnter(d)}});a.onKeyPress.add(function(d,f){if(f.which==41){return c.handleEclipse(d)}});a.onKeyUp.add(function(d,f){if(f.keyCode==32){return c.handleSpacebar(d)}})},handleEclipse:function(a){this.parseCurrentLine(a,-1,"(",true)},handleSpacebar:function(a){this.parseCurrentLine(a,0,"",true)},handleEnter:function(a){this.parseCurrentLine(a,-1,"",false)},parseCurrentLine:function(i,d,b,g){var a,f,c,n,k,m,h,e,j;a=i.selection.getRng().cloneRange();if(a.startOffset<5){e=a.endContainer.previousSibling;if(e==null){if(a.endContainer.firstChild==null||a.endContainer.firstChild.nextSibling==null){return}e=a.endContainer.firstChild.nextSibling}j=e.length;a.setStart(e,j);a.setEnd(e,j);if(a.endOffset<5){return}f=a.endOffset;n=e}else{n=a.endContainer;if(n.nodeType!=3&&n.firstChild){while(n.nodeType!=3&&n.firstChild){n=n.firstChild}a.setStart(n,0);a.setEnd(n,n.nodeValue.length)}if(a.endOffset==1){f=2}else{f=a.endOffset-1-d}}c=f;do{a.setStart(n,f-2);a.setEnd(n,f-1);f-=1}while(a.toString()!=" "&&a.toString()!=""&&a.toString().charCodeAt(0)!=160&&(f-2)>=0&&a.toString()!=b);if(a.toString()==b||a.toString().charCodeAt(0)==160){a.setStart(n,f);a.setEnd(n,c);f+=1}else{if(a.startOffset==0){a.setStart(n,0);a.setEnd(n,c)}else{a.setStart(n,f);a.setEnd(n,c)}}m=a.toString();h=m.match(/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.)(.+)$/i);if(h){if(h[1]=="www."){h[1]="http://www."}k=i.selection.getBookmark();i.selection.setRng(a);tinyMCE.execCommand("
|
1
|
+
(function(){tinymce.create("tinymce.plugins.AutolinkPlugin",{init:function(a,b){var c=this;if(tinyMCE.isIE){return}a.onKeyDown.add(function(d,f){if(f.keyCode==13){return c.handleEnter(d)}});a.onKeyPress.add(function(d,f){if(f.which==41){return c.handleEclipse(d)}});a.onKeyUp.add(function(d,f){if(f.keyCode==32){return c.handleSpacebar(d)}})},handleEclipse:function(a){this.parseCurrentLine(a,-1,"(",true)},handleSpacebar:function(a){this.parseCurrentLine(a,0,"",true)},handleEnter:function(a){this.parseCurrentLine(a,-1,"",false)},parseCurrentLine:function(i,d,b,g){var a,f,c,n,k,m,h,e,j;a=i.selection.getRng().cloneRange();if(a.startOffset<5){e=a.endContainer.previousSibling;if(e==null){if(a.endContainer.firstChild==null||a.endContainer.firstChild.nextSibling==null){return}e=a.endContainer.firstChild.nextSibling}j=e.length;a.setStart(e,j);a.setEnd(e,j);if(a.endOffset<5){return}f=a.endOffset;n=e}else{n=a.endContainer;if(n.nodeType!=3&&n.firstChild){while(n.nodeType!=3&&n.firstChild){n=n.firstChild}a.setStart(n,0);a.setEnd(n,n.nodeValue.length)}if(a.endOffset==1){f=2}else{f=a.endOffset-1-d}}c=f;do{a.setStart(n,f-2);a.setEnd(n,f-1);f-=1}while(a.toString()!=" "&&a.toString()!=""&&a.toString().charCodeAt(0)!=160&&(f-2)>=0&&a.toString()!=b);if(a.toString()==b||a.toString().charCodeAt(0)==160){a.setStart(n,f);a.setEnd(n,c);f+=1}else{if(a.startOffset==0){a.setStart(n,0);a.setEnd(n,c)}else{a.setStart(n,f);a.setEnd(n,c)}}m=a.toString();h=m.match(/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.)(.+)$/i);if(h){if(h[1]=="www."){h[1]="http://www."}k=i.selection.getBookmark();i.selection.setRng(a);tinyMCE.execCommand("createlink",false,h[1]+h[2]);i.selection.moveToBookmark(k);if(tinyMCE.isWebKit){i.selection.collapse(false);var l=Math.min(n.length,c+1);a.setStart(n,l);a.setEnd(n,l);i.selection.setRng(a)}}},getInfo:function(){return{longname:"Autolink",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autolink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autolink",tinymce.plugins.AutolinkPlugin)})();
|
@@ -135,7 +135,7 @@
|
|
135
135
|
bookmark = ed.selection.getBookmark();
|
136
136
|
|
137
137
|
ed.selection.setRng(r);
|
138
|
-
tinyMCE.execCommand('
|
138
|
+
tinyMCE.execCommand('createlink',false, matches[1] + matches[2]);
|
139
139
|
ed.selection.moveToBookmark(bookmark);
|
140
140
|
|
141
141
|
// TODO: Determine if this is still needed.
|
@@ -1,20 +1 @@
|
|
1
|
-
tinyMCE.addI18n('en.emotions_dlg',{
|
2
|
-
title:"Insert emotion",
|
3
|
-
desc:"Emotions",
|
4
|
-
cool:"Cool",
|
5
|
-
cry:"Cry",
|
6
|
-
embarassed:"Embarassed",
|
7
|
-
foot_in_mouth:"Foot in mouth",
|
8
|
-
frown:"Frown",
|
9
|
-
innocent:"Innocent",
|
10
|
-
kiss:"Kiss",
|
11
|
-
laughing:"Laughing",
|
12
|
-
money_mouth:"Money mouth",
|
13
|
-
sealed:"Sealed",
|
14
|
-
smile:"Smile",
|
15
|
-
surprised:"Surprised",
|
16
|
-
tongue_out:"Tongue out",
|
17
|
-
undecided:"Undecided",
|
18
|
-
wink:"Wink",
|
19
|
-
yell:"Yell"
|
20
|
-
});
|
1
|
+
tinyMCE.addI18n('en.emotions_dlg',{cry:"Cry",cool:"Cool",desc:"Emotions",title:"Insert Emotion",yell:"Yell",wink:"Wink",undecided:"Undecided","tongue_out":"Tongue Out",surprised:"Surprised",smile:"Smile",sealed:"Sealed","money_mouth":"Money Mouth",laughing:"Laughing",kiss:"Kiss",innocent:"Innocent",frown:"Frown","foot_in_mouth":"Foot in Mouth",embarassed:"Embarassed"});
|
@@ -1 +1 @@
|
|
1
|
-
(function(){var b=tinymce.each,a=tinymce.html.Node;tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(c,d){var e=this;e.editor=c;c.addCommand("mceFullPageProperties",function(){c.windowManager.open({file:d+"/fullpage.htm",width:430+parseInt(c.getLang("fullpage.delta_width",0)),height:495+parseInt(c.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:d,data:e._htmlToData()})});c.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});c.onBeforeSetContent.add(e._setContent,e);c.onGetContent.add(e._getContent,e)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_htmlToData:function(){var f=this._parseHeader(),h={},c,i,g,e=this.editor;function d(l,j){var k=l.attr(j);return k||""}h.fontface=e.getParam("fullpage_default_fontface","");h.fontsize=e.getParam("fullpage_default_fontsize","");i=f.firstChild;if(i.type==7){h.xml_pi=true;g=/encoding="([^"]+)"/.exec(i.value);if(g){h.docencoding=g[1]}}i=f.getAll("#doctype")[0];if(i){h.doctype="<!DOCTYPE"+i.value+">"}i=f.getAll("title")[0];if(i&&i.firstChild){h.metatitle=i.firstChild.value}b(f.getAll("meta"),function(m){var k=m.attr("name"),j=m.attr("http-equiv"),l;if(k){h["meta"+k.toLowerCase()]=m.attr("content")}else{if(j=="Content-Type"){l=/charset\s*=\s*(.*)\s*/gi.exec(m.attr("content"));if(l){h.docencoding=l[1]}}}});i=f.getAll("html")[0];if(i){h.langcode=d(i,"lang")||d(i,"xml:lang")}i=f.getAll("link")[0];if(i&&i.attr("rel")=="stylesheet"){h.stylesheet=i.attr("href")}i=f.getAll("body")[0];if(i){h.langdir=d(i,"dir");h.style=d(i,"style");h.visited_color=d(i,"vlink");h.link_color=d(i,"link");h.active_color=d(i,"alink")}return h},_dataToHtml:function(g){var f,d,h,j,k,e=this.editor.dom;function c(n,l,m){n.attr(l,m?m:undefined)}function i(l){if(d.firstChild){d.insert(l,d.firstChild)}else{d.append(l)}}f=this._parseHeader();d=f.getAll("head")[0];if(!d){j=f.getAll("html")[0];d=new a("head",1);if(j.firstChild){j.insert(d,j.firstChild,true)}else{j.append(d)}}j=f.firstChild;if(g.xml_pi){k='version="1.0"';if(g.docencoding){k+=' encoding="'+g.docencoding+'"'}if(j.type!=7){j=new a("xml",7);f.insert(j,f.firstChild,true)}j.value=k}else{if(j&&j.type==7){j.remove()}}j=f.getAll("#doctype")[0];if(g.doctype){if(!j){j=new a("#doctype",10);if(g.xml_pi){f.insert(j,f.firstChild)}else{i(j)}}j.value=g.doctype.substring(9,g.doctype.length-1)}else{if(j){j.remove()}}j=f.getAll("title")[0];if(g.metatitle){if(!j){j=new a("title",1);j.append(new a("#text",3)).value=g.metatitle;i(j)}}if(g.docencoding){j=null;b(f.getAll("meta"),function(l){if(l.attr("http-equiv")=="Content-Type"){j=l}});if(!j){j=new a("meta",1);j.attr("http-equiv","Content-Type");j.shortEnded=true;i(j)}j.attr("content","text/html; charset="+g.docencoding)}b("keywords,description,author,copyright,robots".split(","),function(m){var l=f.getAll("meta"),n,p,o=g["meta"+m];for(n=0;n<l.length;n++){p=l[n];if(p.attr("name")==m){if(o){p.attr("content",o)}else{p.remove()}return}}if(o){j=new a("meta",1);j.attr("name",m);j.attr("content",o);j.shortEnded=true;i(j)}});j=f.getAll("link")[0];if(j&&j.attr("rel")=="stylesheet"){if(g.stylesheet){j.attr("href",g.stylesheet)}else{j.remove()}}else{if(g.stylesheet){j=new a("link",1);j.attr({rel:"stylesheet",text:"text/css",href:g.stylesheet});j.shortEnded=true;i(j)}}j=f.getAll("body")[0];if(j){c(j,"dir",g.langdir);c(j,"style",g.style);c(j,"vlink",g.visited_color);c(j,"link",g.link_color);c(j,"alink",g.active_color);e.setAttribs(this.editor.getBody(),{style:g.style,dir:g.dir,vLink:g.visited_color,link:g.link_color,aLink:g.active_color})}j=f.getAll("html")[0];if(j){c(j,"lang",g.langcode);c(j,"xml:lang",g.langcode)}h=new tinymce.html.Serializer({validate:false,indent:true,apply_source_formatting:true,indent_before:"head,html,body,meta,title,script,link,style",indent_after:"head,html,body,meta,title,script,link,style"}).serialize(f);this.head=h.substring(0,h.indexOf("</body>"))},_parseHeader:function(){return new tinymce.html.DomParser({validate:false,root_name:"#document"}).parse(this.head)},_setContent:function(g,d){var m=this,i,c,h=d.content,f,l="",e=m.editor.dom,j;function k(n){return n.replace(/<\/?[A-Z]+/g,function(o){return o.toLowerCase()})}if(d.format=="raw"&&m.head){return}if(d.source_view&&g.getParam("fullpage_hide_in_source_view")){return}h=h.replace(/<(\/?)BODY/gi,"<$1body");i=h.indexOf("<body");if(i!=-1){i=h.indexOf(">",i);m.head=k(h.substring(0,i+1));c=h.indexOf("</body",i);if(c==-1){c=h.length}d.content=h.substring(i+1,c);m.foot=k(h.substring(c))}else{m.head=this._getDefaultHeader();m.foot="\n</body>\n</html>"}f=m._parseHeader();b(f.getAll("style"),function(n){if(n.firstChild){l+=n.firstChild.value}});j=f.getAll("body")[0];if(j){e.setAttribs(m.editor.getBody(),{style:j.attr("style")||"",dir:j.attr("dir")||"",vLink:j.attr("vlink")||"",link:j.attr("link")||"",aLink:j.attr("alink")||""})}if(l){e.add(m.editor.getDoc().getElementsByTagName("head")[0],"style",{id:"fullpage_styles"},l)
|
1
|
+
(function(){var b=tinymce.each,a=tinymce.html.Node;tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(c,d){var e=this;e.editor=c;c.addCommand("mceFullPageProperties",function(){c.windowManager.open({file:d+"/fullpage.htm",width:430+parseInt(c.getLang("fullpage.delta_width",0)),height:495+parseInt(c.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:d,data:e._htmlToData()})});c.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});c.onBeforeSetContent.add(e._setContent,e);c.onGetContent.add(e._getContent,e)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_htmlToData:function(){var f=this._parseHeader(),h={},c,i,g,e=this.editor;function d(l,j){var k=l.attr(j);return k||""}h.fontface=e.getParam("fullpage_default_fontface","");h.fontsize=e.getParam("fullpage_default_fontsize","");i=f.firstChild;if(i.type==7){h.xml_pi=true;g=/encoding="([^"]+)"/.exec(i.value);if(g){h.docencoding=g[1]}}i=f.getAll("#doctype")[0];if(i){h.doctype="<!DOCTYPE"+i.value+">"}i=f.getAll("title")[0];if(i&&i.firstChild){h.metatitle=i.firstChild.value}b(f.getAll("meta"),function(m){var k=m.attr("name"),j=m.attr("http-equiv"),l;if(k){h["meta"+k.toLowerCase()]=m.attr("content")}else{if(j=="Content-Type"){l=/charset\s*=\s*(.*)\s*/gi.exec(m.attr("content"));if(l){h.docencoding=l[1]}}}});i=f.getAll("html")[0];if(i){h.langcode=d(i,"lang")||d(i,"xml:lang")}i=f.getAll("link")[0];if(i&&i.attr("rel")=="stylesheet"){h.stylesheet=i.attr("href")}i=f.getAll("body")[0];if(i){h.langdir=d(i,"dir");h.style=d(i,"style");h.visited_color=d(i,"vlink");h.link_color=d(i,"link");h.active_color=d(i,"alink")}return h},_dataToHtml:function(g){var f,d,h,j,k,e=this.editor.dom;function c(n,l,m){n.attr(l,m?m:undefined)}function i(l){if(d.firstChild){d.insert(l,d.firstChild)}else{d.append(l)}}f=this._parseHeader();d=f.getAll("head")[0];if(!d){j=f.getAll("html")[0];d=new a("head",1);if(j.firstChild){j.insert(d,j.firstChild,true)}else{j.append(d)}}j=f.firstChild;if(g.xml_pi){k='version="1.0"';if(g.docencoding){k+=' encoding="'+g.docencoding+'"'}if(j.type!=7){j=new a("xml",7);f.insert(j,f.firstChild,true)}j.value=k}else{if(j&&j.type==7){j.remove()}}j=f.getAll("#doctype")[0];if(g.doctype){if(!j){j=new a("#doctype",10);if(g.xml_pi){f.insert(j,f.firstChild)}else{i(j)}}j.value=g.doctype.substring(9,g.doctype.length-1)}else{if(j){j.remove()}}j=f.getAll("title")[0];if(g.metatitle){if(!j){j=new a("title",1);j.append(new a("#text",3)).value=g.metatitle;i(j)}}if(g.docencoding){j=null;b(f.getAll("meta"),function(l){if(l.attr("http-equiv")=="Content-Type"){j=l}});if(!j){j=new a("meta",1);j.attr("http-equiv","Content-Type");j.shortEnded=true;i(j)}j.attr("content","text/html; charset="+g.docencoding)}b("keywords,description,author,copyright,robots".split(","),function(m){var l=f.getAll("meta"),n,p,o=g["meta"+m];for(n=0;n<l.length;n++){p=l[n];if(p.attr("name")==m){if(o){p.attr("content",o)}else{p.remove()}return}}if(o){j=new a("meta",1);j.attr("name",m);j.attr("content",o);j.shortEnded=true;i(j)}});j=f.getAll("link")[0];if(j&&j.attr("rel")=="stylesheet"){if(g.stylesheet){j.attr("href",g.stylesheet)}else{j.remove()}}else{if(g.stylesheet){j=new a("link",1);j.attr({rel:"stylesheet",text:"text/css",href:g.stylesheet});j.shortEnded=true;i(j)}}j=f.getAll("body")[0];if(j){c(j,"dir",g.langdir);c(j,"style",g.style);c(j,"vlink",g.visited_color);c(j,"link",g.link_color);c(j,"alink",g.active_color);e.setAttribs(this.editor.getBody(),{style:g.style,dir:g.dir,vLink:g.visited_color,link:g.link_color,aLink:g.active_color})}j=f.getAll("html")[0];if(j){c(j,"lang",g.langcode);c(j,"xml:lang",g.langcode)}h=new tinymce.html.Serializer({validate:false,indent:true,apply_source_formatting:true,indent_before:"head,html,body,meta,title,script,link,style",indent_after:"head,html,body,meta,title,script,link,style"}).serialize(f);this.head=h.substring(0,h.indexOf("</body>"))},_parseHeader:function(){return new tinymce.html.DomParser({validate:false,root_name:"#document"}).parse(this.head)},_setContent:function(g,d){var m=this,i,c,h=d.content,f,l="",e=m.editor.dom,j;function k(n){return n.replace(/<\/?[A-Z]+/g,function(o){return o.toLowerCase()})}if(d.format=="raw"&&m.head){return}if(d.source_view&&g.getParam("fullpage_hide_in_source_view")){return}h=h.replace(/<(\/?)BODY/gi,"<$1body");i=h.indexOf("<body");if(i!=-1){i=h.indexOf(">",i);m.head=k(h.substring(0,i+1));c=h.indexOf("</body",i);if(c==-1){c=h.length}d.content=h.substring(i+1,c);m.foot=k(h.substring(c))}else{m.head=this._getDefaultHeader();m.foot="\n</body>\n</html>"}f=m._parseHeader();b(f.getAll("style"),function(n){if(n.firstChild){l+=n.firstChild.value}});j=f.getAll("body")[0];if(j){e.setAttribs(m.editor.getBody(),{style:j.attr("style")||"",dir:j.attr("dir")||"",vLink:j.attr("vlink")||"",link:j.attr("link")||"",aLink:j.attr("alink")||""})}e.remove("fullpage_styles");if(l){e.add(m.editor.getDoc().getElementsByTagName("head")[0],"style",{id:"fullpage_styles"},l);j=e.get("fullpage_styles");if(j.styleSheet){j.styleSheet.cssText=l}}},_getDefaultHeader:function(){var f="",c=this.editor,e,d="";if(c.getParam("fullpage_default_xml_pi")){f+='<?xml version="1.0" encoding="'+c.getParam("fullpage_default_encoding","ISO-8859-1")+'" ?>\n'}f+=c.getParam("fullpage_default_doctype",'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');f+="\n<html>\n<head>\n";if(e=c.getParam("fullpage_default_title")){f+="<title>"+e+"</title>\n"}if(e=c.getParam("fullpage_default_encoding")){f+='<meta http-equiv="Content-Type" content="text/html; charset='+e+'" />\n'}if(e=c.getParam("fullpage_default_font_family")){d+="font-family: "+e+";"}if(e=c.getParam("fullpage_default_font_size")){d+="font-size: "+e+";"}if(e=c.getParam("fullpage_default_text_color")){d+="color: "+e+";"}f+="</head>\n<body"+(d?' style="'+d+'"':"")+">\n";return f},_getContent:function(d,e){var c=this;if(!e.source_view||!d.getParam("fullpage_hide_in_source_view")){e.content=tinymce.trim(c.head)+"\n"+tinymce.trim(e.content)+"\n"+tinymce.trim(c.foot)}}});tinymce.PluginManager.add("fullpage",tinymce.plugins.FullPagePlugin)})();
|
@@ -351,10 +351,16 @@
|
|
351
351
|
});
|
352
352
|
}
|
353
353
|
|
354
|
-
|
354
|
+
dom.remove('fullpage_styles');
|
355
|
+
|
356
|
+
if (styles) {
|
355
357
|
dom.add(self.editor.getDoc().getElementsByTagName('head')[0], 'style', {id : 'fullpage_styles'}, styles);
|
356
|
-
|
357
|
-
|
358
|
+
|
359
|
+
// Needed for IE 6/7
|
360
|
+
elm = dom.get('fullpage_styles');
|
361
|
+
if (elm.styleSheet)
|
362
|
+
elm.styleSheet.cssText = styles;
|
363
|
+
}
|
358
364
|
},
|
359
365
|
|
360
366
|
_getDefaultHeader : function() {
|
@@ -1,85 +1 @@
|
|
1
|
-
tinyMCE.addI18n('en.fullpage_dlg',{
|
2
|
-
title:"Document properties",
|
3
|
-
meta_tab:"General",
|
4
|
-
appearance_tab:"Appearance",
|
5
|
-
advanced_tab:"Advanced",
|
6
|
-
meta_props:"Meta information",
|
7
|
-
langprops:"Language and encoding",
|
8
|
-
meta_title:"Title",
|
9
|
-
meta_keywords:"Keywords",
|
10
|
-
meta_description:"Description",
|
11
|
-
meta_robots:"Robots",
|
12
|
-
doctypes:"Doctype",
|
13
|
-
langcode:"Language code",
|
14
|
-
langdir:"Language direction",
|
15
|
-
ltr:"Left to right",
|
16
|
-
rtl:"Right to left",
|
17
|
-
xml_pi:"XML declaration",
|
18
|
-
encoding:"Character encoding",
|
19
|
-
appearance_bgprops:"Background properties",
|
20
|
-
appearance_marginprops:"Body margins",
|
21
|
-
appearance_linkprops:"Link colors",
|
22
|
-
appearance_textprops:"Text properties",
|
23
|
-
bgcolor:"Background color",
|
24
|
-
bgimage:"Background image",
|
25
|
-
left_margin:"Left margin",
|
26
|
-
right_margin:"Right margin",
|
27
|
-
top_margin:"Top margin",
|
28
|
-
bottom_margin:"Bottom margin",
|
29
|
-
text_color:"Text color",
|
30
|
-
font_size:"Font size",
|
31
|
-
font_face:"Font face",
|
32
|
-
link_color:"Link color",
|
33
|
-
hover_color:"Hover color",
|
34
|
-
visited_color:"Visited color",
|
35
|
-
active_color:"Active color",
|
36
|
-
textcolor:"Color",
|
37
|
-
fontsize:"Font size",
|
38
|
-
fontface:"Font family",
|
39
|
-
meta_index_follow:"Index and follow the links",
|
40
|
-
meta_index_nofollow:"Index and don't follow the links",
|
41
|
-
meta_noindex_follow:"Do not index but follow the links",
|
42
|
-
meta_noindex_nofollow:"Do not index and don\'t follow the links",
|
43
|
-
appearance_style:"Stylesheet and style properties",
|
44
|
-
stylesheet:"Stylesheet",
|
45
|
-
style:"Style",
|
46
|
-
author:"Author",
|
47
|
-
copyright:"Copyright",
|
48
|
-
add:"Add new element",
|
49
|
-
remove:"Remove selected element",
|
50
|
-
moveup:"Move selected element up",
|
51
|
-
movedown:"Move selected element down",
|
52
|
-
head_elements:"Head elements",
|
53
|
-
info:"Information",
|
54
|
-
add_title:"Title element",
|
55
|
-
add_meta:"Meta element",
|
56
|
-
add_script:"Script element",
|
57
|
-
add_style:"Style element",
|
58
|
-
add_link:"Link element",
|
59
|
-
add_base:"Base element",
|
60
|
-
add_comment:"Comment node",
|
61
|
-
title_element:"Title element",
|
62
|
-
script_element:"Script element",
|
63
|
-
style_element:"Style element",
|
64
|
-
base_element:"Base element",
|
65
|
-
link_element:"Link element",
|
66
|
-
meta_element:"Meta element",
|
67
|
-
comment_element:"Comment",
|
68
|
-
src:"Src",
|
69
|
-
language:"Language",
|
70
|
-
href:"Href",
|
71
|
-
target:"Target",
|
72
|
-
type:"Type",
|
73
|
-
charset:"Charset",
|
74
|
-
defer:"Defer",
|
75
|
-
media:"Media",
|
76
|
-
properties:"Properties",
|
77
|
-
name:"Name",
|
78
|
-
value:"Value",
|
79
|
-
content:"Content",
|
80
|
-
rel:"Rel",
|
81
|
-
rev:"Rev",
|
82
|
-
hreflang:"Href lang",
|
83
|
-
general_props:"General",
|
84
|
-
advanced_props:"Advanced"
|
85
|
-
});
|
1
|
+
tinyMCE.addI18n('en.fullpage_dlg',{title:"Document Properties","meta_tab":"General","appearance_tab":"Appearance","advanced_tab":"Advanced","meta_props":"Meta Information",langprops:"Language and Encoding","meta_title":"Title","meta_keywords":"Keywords","meta_description":"Description","meta_robots":"Robots",doctypes:"Doctype",langcode:"Language Code",langdir:"Language Direction",ltr:"Left to Right",rtl:"Right to Left","xml_pi":"XML Declaration",encoding:"Character Encoding","appearance_bgprops":"Background Properties","appearance_marginprops":"Body Margins","appearance_linkprops":"Link Colors","appearance_textprops":"Text Properties",bgcolor:"Background Color",bgimage:"Background Image","left_margin":"Left Margin","right_margin":"Right Margin","top_margin":"Top Margin","bottom_margin":"Bottom Margin","text_color":"Text Color","font_size":"Font Size","font_face":"Font Face","link_color":"Link Color","hover_color":"Hover Color","visited_color":"Visited Color","active_color":"Active Color",textcolor:"Color",fontsize:"Font Size",fontface:"Font Family","meta_index_follow":"Index and Follow the Links","meta_index_nofollow":"Index and Don\'t Follow the Links","meta_noindex_follow":"Do Not Index but Follow the Links","meta_noindex_nofollow":"Do Not Index and Don\'t Follow the Links","appearance_style":"Stylesheet and Style Properties",stylesheet:"Stylesheet",style:"Style",author:"Author",copyright:"Copyright",add:"Add New Element",remove:"Remove Selected Element",moveup:"Move Selected Element Up",movedown:"Move Selected Element Down","head_elements":"Head Elements",info:"Information","add_title":"Title Element","add_meta":"Meta Element","add_script":"Script Element","add_style":"Style Element","add_link":"Link Element","add_base":"Base Element","add_comment":"Comment Node","title_element":"Title Element","script_element":"Script Element","style_element":"Style Element","base_element":"Base Element","link_element":"Link Element","meta_element":"Meta Element","comment_element":"Comment",src:"Source",language:"Language",href:"HREF",target:"Target",type:"Type",charset:"Charset",defer:"Defer",media:"Media",properties:"Properties",name:"Name",value:"Value",content:"Content",rel:"Rel",rev:"Rev",hreflang:"HREF Lang","general_props":"General","advanced_props":"Advanced"});
|