refinerycms-wymeditor 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. data/.gitignore +88 -0
  2. data/app/assets/images/wymeditor/skins/refinery/arrow_redo.png +0 -0
  3. data/app/assets/images/wymeditor/skins/refinery/arrow_undo.png +0 -0
  4. data/app/assets/images/wymeditor/skins/refinery/eye.png +0 -0
  5. data/app/assets/images/wymeditor/skins/refinery/html5/article.png +0 -0
  6. data/app/assets/images/wymeditor/skins/refinery/html5/aside.png +0 -0
  7. data/app/assets/images/wymeditor/skins/refinery/html5/blockquote.png +0 -0
  8. data/app/assets/images/wymeditor/skins/refinery/html5/command.png +0 -0
  9. data/app/assets/images/wymeditor/skins/refinery/html5/details.png +0 -0
  10. data/app/assets/images/wymeditor/skins/refinery/html5/figcaption.png +0 -0
  11. data/app/assets/images/wymeditor/skins/refinery/html5/figure.png +0 -0
  12. data/app/assets/images/wymeditor/skins/refinery/html5/footer.png +0 -0
  13. data/app/assets/images/wymeditor/skins/refinery/html5/h1.png +0 -0
  14. data/app/assets/images/wymeditor/skins/refinery/html5/h2.png +0 -0
  15. data/app/assets/images/wymeditor/skins/refinery/html5/h3.png +0 -0
  16. data/app/assets/images/wymeditor/skins/refinery/html5/h4.png +0 -0
  17. data/app/assets/images/wymeditor/skins/refinery/html5/h5.png +0 -0
  18. data/app/assets/images/wymeditor/skins/refinery/html5/h6.png +0 -0
  19. data/app/assets/images/wymeditor/skins/refinery/html5/header.png +0 -0
  20. data/app/assets/images/wymeditor/skins/refinery/html5/hgroup.png +0 -0
  21. data/app/assets/images/wymeditor/skins/refinery/html5/mark.png +0 -0
  22. data/app/assets/images/wymeditor/skins/refinery/html5/meter.png +0 -0
  23. data/app/assets/images/wymeditor/skins/refinery/html5/nav.png +0 -0
  24. data/app/assets/images/wymeditor/skins/refinery/html5/p.png +0 -0
  25. data/app/assets/images/wymeditor/skins/refinery/html5/pre.png +0 -0
  26. data/app/assets/images/wymeditor/skins/refinery/html5/progress.png +0 -0
  27. data/app/assets/images/wymeditor/skins/refinery/html5/readme.md +1 -0
  28. data/app/assets/images/wymeditor/skins/refinery/html5/rp.png +0 -0
  29. data/app/assets/images/wymeditor/skins/refinery/html5/rt.png +0 -0
  30. data/app/assets/images/wymeditor/skins/refinery/html5/ruby.png +0 -0
  31. data/app/assets/images/wymeditor/skins/refinery/html5/section.png +0 -0
  32. data/app/assets/images/wymeditor/skins/refinery/html5/summary.png +0 -0
  33. data/app/assets/images/wymeditor/skins/refinery/html5/time.png +0 -0
  34. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-blockquote.png +0 -0
  35. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h1.png +0 -0
  36. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h2.png +0 -0
  37. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h3.png +0 -0
  38. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h4.png +0 -0
  39. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h5.png +0 -0
  40. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h6.png +0 -0
  41. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-p.png +0 -0
  42. data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-pre.png +0 -0
  43. data/app/assets/images/wymeditor/skins/refinery/link_add.png +0 -0
  44. data/app/assets/images/wymeditor/skins/refinery/link_break.png +0 -0
  45. data/app/assets/images/wymeditor/skins/refinery/page_code.png +0 -0
  46. data/app/assets/images/wymeditor/skins/refinery/page_paste.png +0 -0
  47. data/app/assets/images/wymeditor/skins/refinery/photo_add.png +0 -0
  48. data/app/assets/images/wymeditor/skins/refinery/right.png +0 -0
  49. data/app/assets/images/wymeditor/skins/refinery/style.png +0 -0
  50. data/app/assets/images/wymeditor/skins/refinery/table_add.png +0 -0
  51. data/app/assets/images/wymeditor/skins/refinery/text_align_center.png +0 -0
  52. data/app/assets/images/wymeditor/skins/refinery/text_align_justify.png +0 -0
  53. data/app/assets/images/wymeditor/skins/refinery/text_align_left.png +0 -0
  54. data/app/assets/images/wymeditor/skins/refinery/text_align_right.png +0 -0
  55. data/app/assets/images/wymeditor/skins/refinery/text_bold.png +0 -0
  56. data/app/assets/images/wymeditor/skins/refinery/text_heading_1.png +0 -0
  57. data/app/assets/images/wymeditor/skins/refinery/text_heading_2.png +0 -0
  58. data/app/assets/images/wymeditor/skins/refinery/text_heading_3.png +0 -0
  59. data/app/assets/images/wymeditor/skins/refinery/text_heading_4.png +0 -0
  60. data/app/assets/images/wymeditor/skins/refinery/text_heading_5.png +0 -0
  61. data/app/assets/images/wymeditor/skins/refinery/text_heading_6.png +0 -0
  62. data/app/assets/images/wymeditor/skins/refinery/text_indent.png +0 -0
  63. data/app/assets/images/wymeditor/skins/refinery/text_indent_remove.png +0 -0
  64. data/app/assets/images/wymeditor/skins/refinery/text_italic.png +0 -0
  65. data/app/assets/images/wymeditor/skins/refinery/text_list_bullets.png +0 -0
  66. data/app/assets/images/wymeditor/skins/refinery/text_list_numbers.png +0 -0
  67. data/app/assets/images/wymeditor/skins/refinery/text_paragraph.png +0 -0
  68. data/app/assets/images/wymeditor/skins/refinery/text_strikethrough.png +0 -0
  69. data/app/assets/images/wymeditor/skins/refinery/text_subscript.png +0 -0
  70. data/app/assets/images/wymeditor/skins/refinery/text_superscript.png +0 -0
  71. data/app/assets/images/wymeditor/skins/refinery/text_underline.png +0 -0
  72. data/app/assets/images/wymeditor/skins/wymeditor_icon.png +0 -0
  73. data/app/assets/javascripts/refinery/boot_wym.js.erb +289 -0
  74. data/app/assets/javascripts/refinery/wymeditor.js +37 -0
  75. data/app/assets/javascripts/wymeditor/browsers/ie.js.erb +224 -0
  76. data/app/assets/javascripts/wymeditor/browsers/mozilla.js.erb +293 -0
  77. data/app/assets/javascripts/wymeditor/browsers/opera.js.erb +123 -0
  78. data/app/assets/javascripts/wymeditor/browsers/webkit.js.erb +284 -0
  79. data/app/assets/javascripts/wymeditor/classes.js.erb +1577 -0
  80. data/app/assets/javascripts/wymeditor/functions.js.erb +218 -0
  81. data/app/assets/javascripts/wymeditor/lang/bg.js +57 -0
  82. data/app/assets/javascripts/wymeditor/lang/ca.js +45 -0
  83. data/app/assets/javascripts/wymeditor/lang/cs.js +58 -0
  84. data/app/assets/javascripts/wymeditor/lang/da.js +48 -0
  85. data/app/assets/javascripts/wymeditor/lang/de.js +45 -0
  86. data/app/assets/javascripts/wymeditor/lang/en.js +57 -0
  87. data/app/assets/javascripts/wymeditor/lang/es.js +58 -0
  88. data/app/assets/javascripts/wymeditor/lang/fa.js +46 -0
  89. data/app/assets/javascripts/wymeditor/lang/fi.js +57 -0
  90. data/app/assets/javascripts/wymeditor/lang/fr.js +57 -0
  91. data/app/assets/javascripts/wymeditor/lang/he.js +45 -0
  92. data/app/assets/javascripts/wymeditor/lang/hu.js +45 -0
  93. data/app/assets/javascripts/wymeditor/lang/it.js +48 -0
  94. data/app/assets/javascripts/wymeditor/lang/ja.js +47 -0
  95. data/app/assets/javascripts/wymeditor/lang/lv.js +47 -0
  96. data/app/assets/javascripts/wymeditor/lang/nb.js +48 -0
  97. data/app/assets/javascripts/wymeditor/lang/nl.js +47 -0
  98. data/app/assets/javascripts/wymeditor/lang/nn.js +45 -0
  99. data/app/assets/javascripts/wymeditor/lang/pl.js +45 -0
  100. data/app/assets/javascripts/wymeditor/lang/pt-BR.js +58 -0
  101. data/app/assets/javascripts/wymeditor/lang/pt.js +45 -0
  102. data/app/assets/javascripts/wymeditor/lang/rs.js +47 -0
  103. data/app/assets/javascripts/wymeditor/lang/ru.js +56 -0
  104. data/app/assets/javascripts/wymeditor/lang/sk.js +56 -0
  105. data/app/assets/javascripts/wymeditor/lang/sl.js +47 -0
  106. data/app/assets/javascripts/wymeditor/lang/sv.js +45 -0
  107. data/app/assets/javascripts/wymeditor/lang/tr.js +45 -0
  108. data/app/assets/javascripts/wymeditor/lang/vi.js +47 -0
  109. data/app/assets/javascripts/wymeditor/lang/zh_cn.js +47 -0
  110. data/app/assets/javascripts/wymeditor/prototypes.js.erb +1106 -0
  111. data/app/assets/javascripts/wymeditor/setup.js.erb +622 -0
  112. data/app/assets/javascripts/wymeditor/skins/refinery/skin.js +48 -0
  113. data/app/assets/javascripts/wymeditor/validators.js.erb +776 -0
  114. data/app/assets/stylesheets/theme.css.scss +36 -0
  115. data/app/assets/stylesheets/wymeditor/skins/refinery/skin.css.scss +530 -0
  116. data/app/assets/stylesheets/wymeditor/skins/refinery/wymiframe.css.scss +156 -0
  117. data/app/assets/stylesheets/wymeditor.css.scss +0 -0
  118. data/app/controllers/refinery/wymeditor_controller.rb +9 -0
  119. data/app/views/refinery/wymiframe.html.erb +14 -0
  120. data/config/initializers/refinery/wymeditor.rb.erb +4 -0
  121. data/lib/refinery/wymeditor/configuration.rb +10 -0
  122. data/lib/refinery/wymeditor/engine.rb +30 -0
  123. data/lib/refinery/wymeditor.rb +12 -0
  124. data/public/wymeditor/GPL-license.txt +278 -0
  125. data/public/wymeditor/MIT-license.txt +20 -0
  126. data/public/wymeditor/README +35 -0
  127. data/readme.md +96 -0
  128. data/refinerycms-wymeditor.gemspec +17 -0
  129. metadata +173 -0
@@ -0,0 +1,218 @@
1
+ /*
2
+ * Function: WYMeditor.loadCss
3
+ * Loads a stylesheet in the document.
4
+ *
5
+ * Parameters:
6
+ * href - The CSS path.
7
+ */
8
+ WYMeditor.loadCss = function(href) {
9
+ $("<link rel='stylesheet' />").attr('href', href).appendTo($('head').get(0));
10
+ };
11
+
12
+ /********** DIALOGS **********/
13
+
14
+ WYMeditor.INIT_DIALOG = function(wym, selected, isIframe) {
15
+
16
+ var selected = selected || wym.selected();
17
+ var dialog = $("#"+wym._options.dialogId);
18
+ var doc = $(dialog.find('iframe').contents());
19
+ var dialogType = dialog.find('#wym_dialog_type').val();
20
+ if (wym._selected_image) {
21
+ var replaceable = $(wym._selected_image);
22
+ } else {
23
+ var replaceable = $(wym._doc.body).find('#' + wym._current_unique_stamp);
24
+ }
25
+
26
+ // focus first textarea or input type text element
27
+ dialog.find('input[type=text], textarea').first().focus();
28
+
29
+ // init close_dialog when user clicks on cancel button
30
+ doc.find('body').addClass('wym_iframe_body').find('#cancel_button').add(dialog.find('.close_dialog')).click(function(e){
31
+ wym.close_dialog(e, true);
32
+ });
33
+
34
+ // init close_dialog when user clicks on small x icon at the top of dialog
35
+ $('.ui-dialog-titlebar .ui-dialog-titlebar-close').click(function(e){
36
+ wym.close_dialog(e, true);
37
+ });
38
+
39
+ //pre-init functions
40
+ if($.isFunction(wym._options.preInitDialog)) {
41
+ wym._options.preInitDialog(wym, window);
42
+ }
43
+
44
+ $(wym._options.dialogLinkSelector).find(wym._options.submitSelector).click(function(e)
45
+ {
46
+ if ((sUrl = $(wym._options.hrefSelector).val()).length > 0)
47
+ {
48
+ if (replaceable.get(0) != null) {
49
+ var link = $('<a></a>').attr({href:sUrl, title: $(wym._options.titleSelector).val()})
50
+ if ((target = $(wym._options.targetSelector).val()) != null && target.length > 0) {
51
+ link.attr('target', target);
52
+ }
53
+
54
+ // now grab what was selected in the editor and chuck it inside the link.
55
+ if (!wym._selected_image)
56
+ {
57
+ // ensure some attributes are copied across to the new link.
58
+ link.attr({'style': replaceable.attr('style'), 'class': replaceable.attr('class')});
59
+
60
+ link.html(replaceable.html());
61
+ replaceable.replaceWith($('<div/>').append(link).html());
62
+ }
63
+ else
64
+ {
65
+ if ((parent = replaceable.parent().get(0)) != null && parent.tagName.toUpperCase() == "A") {
66
+ $(parent).attr({href: link.attr('href'), title: $(wym._options.titleSelector).val(), target: target});
67
+ }
68
+ else {
69
+ replaceable.before(link);
70
+ $(link).append(replaceable.get(0));
71
+ }
72
+ }
73
+ }
74
+ else {
75
+ wym._exec(WYMeditor.CREATE_LINK, wym._current_unique_stamp);
76
+
77
+ $("a[href=" + wym._current_unique_stamp + "]", wym._doc.body)
78
+ .attr(WYMeditor.HREF, sUrl)
79
+ .attr(WYMeditor.TITLE, $(wym._options.titleSelector).val())
80
+ .attr(WYMeditor.TARGET, $(wym._options.targetSelector).val());
81
+ }
82
+ }
83
+ // fire a click event on the dialogs close button
84
+ wym.close_dialog(e);
85
+ });
86
+
87
+ //auto populate image fields if selected image
88
+ if(wym._selected_image) {
89
+ imgDialog = $(wym._options.dialogImageSelector);
90
+ img = $(wym._selected_image);
91
+ size = ((img.attr(WYMeditor.REL) || doc.find('#existing_image_size_area li.selected a').attr('rel')) || "");
92
+ src = img.attr(WYMeditor.SRC);
93
+ if (size.length > 0) {
94
+ src = src.replace('_' + size + '.', '.');
95
+ doc.find('#existing_image_size_area li.selected').removeClass('selected');
96
+ doc.find("#existing_image_size_area li a[href='#" + size + "']").parents('li:first').addClass('selected');
97
+ }
98
+
99
+ imgDialog.find(wym._options.srcSelector).val(src);
100
+ imgDialog.find(wym._options.titleSelector).val(img.attr(WYMeditor.TITLE));
101
+ imgDialog.find(wym._options.altSelector).val(img.attr(WYMeditor.ALT));
102
+ imgDialog.find(wym._options.sizeSelector).val(size);
103
+
104
+ (src = src.split('.')).pop();
105
+ doc.find("#existing_image_area_content li img[src^='" + src + "']").parents('li:first').addClass('selected');
106
+ }
107
+
108
+ $(wym._options.dialogImageSelector).find(wym._options.submitSelector).click(function(e) {
109
+ form = $(this.form);
110
+ if ((url = form.find(wym._options.srcSelector).val()) != null && url.length > 0) {
111
+ (image = $(wym._doc.createElement("IMG")))
112
+ .attr(WYMeditor.SRC, url)
113
+ .attr(WYMeditor.TITLE, form.find(wym._options.titleSelector).val())
114
+ .attr(WYMeditor.ALT, form.find(wym._options.altSelector).val())
115
+ .attr(WYMeditor.REL, form.find(wym._options.sizeSelector).val())
116
+ .load(function(e){
117
+ $(this).attr({
118
+ 'width': $(this).width()
119
+ , 'height': $(this).height()
120
+ });
121
+ });
122
+
123
+ // ensure we know where to put the image.
124
+ if (replaceable == null) {
125
+ replaceable = $(wym._doc.body).find("#" + wym._current_unique_stamp);
126
+ }
127
+ if (replaceable != null) {
128
+ replaceable.after(image).remove();
129
+ }
130
+
131
+ // fire a click event on the dialogs close button
132
+ wym.close_dialog(e);
133
+ } else {
134
+ // remove any save loader animations.
135
+ $('iframe').contents().find('.save-loader').remove();
136
+ // tell the user.
137
+ alert("Please select an image to insert.");
138
+ }
139
+ e.preventDefault();
140
+ });
141
+
142
+ $(wym._options.dialogTableSelector).find(wym._options.submitSelector).click(function(e) {
143
+ if((iRows = $(wym._options.rowsSelector).val()) > 0 && (iCols = $(wym._options.colsSelector).val()) > 0)
144
+ {
145
+ //create the table and the caption
146
+ (table = wym._doc.createElement(WYMeditor.TABLE)).createCaption().innerHTML = $(wym._options.captionSelector).val();
147
+
148
+ //create the rows and cells
149
+ for(x=0; x<iRows; x++) {
150
+ newRow = table.insertRow(x);
151
+ for(y=0; y<iCols; y++) {
152
+ newRow.insertCell(y);
153
+ }
154
+ }
155
+
156
+ //append the table after the selected container
157
+ var node = $(wym.findUp(wym.container(), WYMeditor.MAIN_CONTAINERS)).get(0);
158
+ if(!node || !node.parentNode) $(wym._doc.body).append(table);
159
+ else $(node).after(table);
160
+ }
161
+ // fire a click event on the dialogs close button
162
+ wym.close_dialog(e);
163
+ });
164
+
165
+ $(wym._options.dialogPasteSelector).find(wym._options.submitSelector).click(function(e) {
166
+ wym.paste($(wym._options.textSelector).val());
167
+
168
+ wym.close_dialog(e);
169
+ });
170
+
171
+ $(wym._options.dialogPreviewSelector).find(wym._options.previewSelector).html(wym.xhtml());
172
+
173
+ //post-init functions
174
+ if($.isFunction(wym._options.postInitDialog)) {
175
+ wym._options.postInitDialog(wym,window);
176
+ }
177
+ };
178
+
179
+ WYMeditor.editor.prototype.close_dialog = function(e, cancelled) {
180
+ if (cancelled)
181
+ {
182
+ // if replaceable exists, replace it with its own html contents.
183
+ if ((span = $(this._doc.body).find('span#' + this._current_unique_stamp)).length > 0) {
184
+ span.parent().html(span.parent().html().replace(new RegExp(["<span(.+?)", span.attr('id'), "(.+?)<\/span>"].join("")), span.html()));
185
+ }
186
+ // https://github.com/resolve/refinerycms/issues/888
187
+ if (node = $(this._doc.body).find('#' + this._current_unique_stamp)) {
188
+ node.attr("id", (node.attr('_id_before_replaceable') || ""));
189
+ node.removeAttr("_id_before_replaceable");
190
+ }
191
+
192
+ if (this._undo_on_cancel == true) {
193
+ this._exec("undo");
194
+ }
195
+ else if (this._redo_on_cancel == true) {
196
+ this._exec("redo");
197
+ }
198
+ }
199
+
200
+ if ($.browser.msie && parseInt($.browser.version) < 8)
201
+ {
202
+ this._iframe.contentWindow.focus();
203
+ }
204
+
205
+ $("#" + wym._options.dialogId).dialog("close").remove();
206
+
207
+ // ensure links can't be navigated to.
208
+ $(this._doc).find('a[href]').click(function(e){e.preventDefault();});
209
+
210
+ if (e) {
211
+ e.preventDefault();
212
+ }
213
+ };
214
+
215
+ // from http://simonwillison.net/2006/Jan/20/escape/#p-6
216
+ RegExp.escape = function(text) {
217
+ return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
218
+ };
@@ -0,0 +1,57 @@
1
+ WYMeditor.STRINGS['bg'] = {
2
+ Strong: 'Получер',
3
+ Bold: 'Получер',
4
+ Emphasis: 'Курсив',
5
+ Superscript: 'Горен индекс',
6
+ Subscript: 'Долен индекс',
7
+ Ordered_List: 'Подреден списък',
8
+ Unordered_List: 'Списък',
9
+ Indent: 'Блок навътре',
10
+ Outdent: 'Блок навън',
11
+ Undo: 'Отмяна',
12
+ Redo: 'Повторение',
13
+ Link: 'Връзка',
14
+ Unlink: 'Премахване на връзка',
15
+ Image: 'Изображение',
16
+ Table: 'Таблица',
17
+ HTML: 'HTML',
18
+ Paragraph: 'Параграф',
19
+ Heading_1: 'Заглавие 1',
20
+ Heading_2: 'Заглавие 2',
21
+ Heading_3: 'Заглавие 3',
22
+ Heading_4: 'Заглавие 4',
23
+ Heading_5: 'Заглавие 5',
24
+ Heading_6: 'Заглавие 6',
25
+ Preformatted: 'Форматиран предварително',
26
+ Blockquote: 'Цитат',
27
+ Table_Header: 'Заглавие на таблицата',
28
+ URL: 'Уеб адрес',
29
+ Title: 'Заглавие',
30
+ Alternative_Text: 'Алтернативен текст',
31
+ Caption: 'Заглавие',
32
+ Summary: 'Общо',
33
+ Number_Of_Rows: 'Брой редове',
34
+ Number_Of_Cols: 'Брой колони',
35
+ Insert: 'Вмъкване',
36
+ Submit: 'Изпращане',
37
+ Cancel: 'Отказ',
38
+ Choose: 'Избор',
39
+ Preview: 'Преглед',
40
+ Paste_From_Word: 'Вмъкнете Вашия текст по-долу',
41
+ Tools: 'Инструменти',
42
+ Containers: 'Контейнери',
43
+ Classes: 'Класове',
44
+ Status: 'Статус',
45
+ Source_Code: 'Изходен код',
46
+ Text_Align: 'На текст',
47
+ Image_Align: 'На изображение',
48
+ Font_Size: 'На шрифт',
49
+ Left: 'Отляво',
50
+ Right: 'Отдясно',
51
+ Center: 'Центрирано',
52
+ Justify: 'Двустранно',
53
+ Small: 'Малък',
54
+ Normal: 'Нормален',
55
+ Large: 'Голям',
56
+ Apply_Style: 'Стил'
57
+ };
@@ -0,0 +1,45 @@
1
+ WYMeditor.STRINGS['ca'] = {
2
+ Strong: 'Ressaltar',
3
+ Emphasis: 'Emfatitzar',
4
+ Superscript: 'Superindex',
5
+ Subscript: 'Subindex',
6
+ Ordered_List: 'Llistat ordenat',
7
+ Unordered_List: 'Llistat sense ordenar',
8
+ Indent: 'Indentat',
9
+ Outdent: 'Sense indentar',
10
+ Undo: 'Desfer',
11
+ Redo: 'Refer',
12
+ Link: 'Enllaçar',
13
+ Unlink: 'Eliminar enllaç',
14
+ Image: 'Imatge',
15
+ Table: 'Taula',
16
+ HTML: 'HTML',
17
+ Paragraph: 'Paràgraf',
18
+ Heading_1: 'Capçalera 1',
19
+ Heading_2: 'Capçalera 2',
20
+ Heading_3: 'Capçalera 3',
21
+ Heading_4: 'Capçalera 4',
22
+ Heading_5: 'Capçalera 5',
23
+ Heading_6: 'Capçalera 6',
24
+ Preformatted: 'Pre-formatejat',
25
+ Blockquote: 'Cita',
26
+ Table_Header: 'Capçalera de la taula',
27
+ URL: 'URL',
28
+ Title: 'Títol',
29
+ Alternative_Text: 'Text alternatiu',
30
+ Caption: 'Llegenda',
31
+ Summary: 'Summary',
32
+ Number_Of_Rows: 'Nombre de files',
33
+ Number_Of_Cols: 'Nombre de columnes',
34
+ Submit: 'Enviar',
35
+ Cancel: 'Cancel·lar',
36
+ Choose: 'Triar',
37
+ Preview: 'Vista prèvia',
38
+ Paste_From_Word: 'Pegar des de Word',
39
+ Tools: 'Eines',
40
+ Containers: 'Contenidors',
41
+ Classes: 'Classes',
42
+ Status: 'Estat',
43
+ Source_Code: 'Codi font'
44
+ };
45
+
@@ -0,0 +1,58 @@
1
+ WYMeditor.STRINGS['cs'] = {
2
+ Strong: 'Tučné',
3
+ Emphasis: 'Kurzíva',
4
+ Superscript: 'Horní index',
5
+ Subscript: 'Dolní index',
6
+ Ordered_List: 'Číslovaný seznam',
7
+ Unordered_List: 'Nečíslovaný seznam',
8
+ Indent: 'Zvětšit odsazení',
9
+ Outdent: 'Zmenšit odsazení',
10
+ Undo: 'Zpět',
11
+ Redo: 'Znovu',
12
+ Link: 'Vytvořit odkaz',
13
+ Unlink: 'Zrušit odkaz',
14
+ Image: 'Obrázek',
15
+ Table: 'Tabulka',
16
+ HTML: 'HTML',
17
+ Paragraph: 'Odstavec',
18
+ Heading_1: 'Nadpis 1. úrovně',
19
+ Heading_2: 'Nadpis 2. úrovně',
20
+ Heading_3: 'Nadpis 3. úrovně',
21
+ Heading_4: 'Nadpis 4. úrovně',
22
+ Heading_5: 'Nadpis 5. úrovně',
23
+ Heading_6: 'Nadpis 6. úrovně',
24
+ Preformatted: 'Předformátovaný text',
25
+ Blockquote: 'Citace',
26
+ Table_Header: 'Hlavičková buňka tabulky',
27
+ URL: 'Adresa',
28
+ Title: 'Text po najetí myší',
29
+ Alternative_Text: 'Text pro případ nezobrazení obrázku',
30
+ Caption: 'Titulek tabulky',
31
+ Summary: 'Shrnutí obsahu',
32
+ Number_Of_Rows: 'Počet řádek',
33
+ Number_Of_Cols: 'Počet sloupců',
34
+ Submit: 'Vytvořit',
35
+ Cancel: 'Zrušit',
36
+ Choose: 'Vybrat',
37
+ Preview: 'Náhled',
38
+ Paste_From_Word: 'Vložit z Wordu',
39
+ Tools: 'Nástroje',
40
+ Containers: 'Typy obsahu',
41
+ Classes: 'Třídy',
42
+ Status: 'Stav',
43
+ Source_Code: 'Zdrojový kód',
44
+ Apply_Style: 'Styl',
45
+ Insert: 'Vložit',
46
+ Text_Align: 'Zarovnání textu',
47
+ Image_Align: 'Zarovnání obrázku',
48
+ Font_Size: 'Velikost písma',
49
+ Left: 'Vlevo',
50
+ Right: 'Vpravo',
51
+ Center: 'Na střed',
52
+ Justify: 'Do bloku',
53
+ Small: 'Malé',
54
+ Normal: 'Normální',
55
+ Large: 'Velké',
56
+ Apply_Style: 'Styl'
57
+ };
58
+
@@ -0,0 +1,48 @@
1
+ WYMeditor.STRINGS['da'] = {
2
+ Strong: 'Kraftig',
3
+ Bold: 'Fed',
4
+ Emphasis: 'Fremhævet',
5
+ Superscript: 'Superscript',
6
+ Subscript: 'Subscript',
7
+ Ordered_List: 'Sorteret liste',
8
+ Unordered_List: 'Punktopstillet liste',
9
+ Indent: 'Ryk ind',
10
+ Outdent: 'Ryk ud',
11
+ Undo: 'Fortryd',
12
+ Redo: 'Igen',
13
+ Link: 'Tilføj link',
14
+ Unlink: 'Fjern link',
15
+ Image: 'Indsæt billede',
16
+ Table: 'Indsæt tabel',
17
+ HTML: 'HTML',
18
+ Paragraph: 'Afsnit',
19
+ Heading_1: 'Overskrift 1',
20
+ Heading_2: 'Overskrift 2',
21
+ Heading_3: 'Overskrift 3',
22
+ Heading_4: 'Overskrift 4',
23
+ Heading_5: 'Overskrift 5',
24
+ Heading_6: 'Overskrift 6',
25
+ Preformatted: 'Præformattet',
26
+ Blockquote: 'Blockquote',
27
+ Table_Header: 'Tabel overskrift',
28
+ URL: 'URL',
29
+ Title: 'Titel',
30
+ Alternative_Text: 'Alternativ tekst',
31
+ Caption: 'Overskrift',
32
+ Summary: 'Resume',
33
+ Number_Of_Rows: 'Antal rækker',
34
+ Number_Of_Cols: 'Antal kolonner',
35
+ Insert: 'Indsæt',
36
+ Submit: 'Gem',
37
+ Cancel: 'Annullér',
38
+ Choose: 'Vælg',
39
+ Preview: 'Vis',
40
+ Paste_From_Word: 'Indsæt tekst her under',
41
+ Tools: 'Værktøjer',
42
+ Containers: 'Containere',
43
+ Classes: 'Klasser',
44
+ Status: 'Status',
45
+ Source_Code: 'Kilde kode',
46
+ Css_Class: 'Tilføj CSS klasse',
47
+ Apply_Style: 'Formatér'
48
+ };
@@ -0,0 +1,45 @@
1
+ WYMeditor.STRINGS['de'] = {
2
+ Apply_Style: 'Style',
3
+ Strong: 'Fett',
4
+ Emphasis: 'Kursiv',
5
+ Superscript: 'Hochstellen',
6
+ Subscript: 'Tiefstellen',
7
+ Ordered_List: 'Geordnete Liste',
8
+ Unordered_List: 'Ungeordnete Liste',
9
+ Indent: 'Einzug erhöhen',
10
+ Outdent: 'Einzug vermindern',
11
+ Undo: 'Rückgängig',
12
+ Redo: 'Wiederherstellen',
13
+ Link: 'Hyperlink',
14
+ Unlink: 'Hyperlink entfernen',
15
+ Image: 'Bild',
16
+ Table: 'Tabelle',
17
+ HTML: 'HTML',
18
+ Paragraph: 'Absatz',
19
+ Heading_1: 'Überschrift 1',
20
+ Heading_2: 'Überschrift 2',
21
+ Heading_3: 'Überschrift 3',
22
+ Heading_4: 'Überschrift 4',
23
+ Heading_5: 'Überschrift 5',
24
+ Heading_6: 'Überschrift 6',
25
+ Preformatted: 'Vorformatiert',
26
+ Blockquote: 'Zitat',
27
+ Table_Header: 'Tabellenüberschrift',
28
+ URL: 'URL',
29
+ Title: 'Titel',
30
+ Alternative_Text: 'Alternativer Text',
31
+ Caption: 'Tabellenüberschrift',
32
+ Summary: 'Summary',
33
+ Number_Of_Rows: 'Anzahl Zeilen',
34
+ Number_Of_Cols: 'Anzahl Spalten',
35
+ Submit: 'Absenden',
36
+ Cancel: 'Abbrechen',
37
+ Choose: 'Auswählen',
38
+ Preview: 'Vorschau',
39
+ Paste_From_Word: 'Aus Word einfügen',
40
+ Tools: 'Werkzeuge',
41
+ Containers: 'Inhaltstyp',
42
+ Classes: 'Klassen',
43
+ Status: 'Status',
44
+ Source_Code: 'Quellcode'
45
+ };
@@ -0,0 +1,57 @@
1
+ WYMeditor.STRINGS['en'] = {
2
+ Strong: 'Strong',
3
+ Bold: 'Bold',
4
+ Emphasis: 'Emphasis',
5
+ Superscript: 'Superscript',
6
+ Subscript: 'Subscript',
7
+ Ordered_List: 'Ordered List',
8
+ Unordered_List: 'Unordered List',
9
+ Indent: 'Indent',
10
+ Outdent: 'Outdent',
11
+ Undo: 'Undo',
12
+ Redo: 'Redo',
13
+ Link: 'Add Link',
14
+ Unlink: 'Remove Link',
15
+ Image: 'Add Image',
16
+ Table: 'Add Table',
17
+ HTML: 'HTML',
18
+ Paragraph: 'Paragraph',
19
+ Heading_1: 'Heading 1',
20
+ Heading_2: 'Heading 2',
21
+ Heading_3: 'Heading 3',
22
+ Heading_4: 'Heading 4',
23
+ Heading_5: 'Heading 5',
24
+ Heading_6: 'Heading 6',
25
+ Preformatted: 'Preformatted',
26
+ Blockquote: 'Blockquote',
27
+ Table_Header: 'Table Header',
28
+ URL: 'URL',
29
+ Title: 'Title',
30
+ Alternative_Text: 'Alternative text',
31
+ Caption: 'Caption',
32
+ Summary: 'Summary',
33
+ Number_Of_Rows: 'Number of rows',
34
+ Number_Of_Cols: 'Number of cols',
35
+ Insert: 'Insert',
36
+ Submit: 'Submit',
37
+ Cancel: 'Cancel',
38
+ Choose: 'Choose',
39
+ Preview: 'Preview',
40
+ Paste_From_Word: 'Paste your text below',
41
+ Tools: 'Tools',
42
+ Containers: 'Containers',
43
+ Classes: 'Classes',
44
+ Status: 'Status',
45
+ Source_Code: 'Source code',
46
+ Text_Align: 'Text Align',
47
+ Image_Align: 'Image Align',
48
+ Font_Size: 'Font Size',
49
+ Left: 'Left',
50
+ Right: 'Right',
51
+ Center: 'Center',
52
+ Justify: 'Justify',
53
+ Small: 'Small',
54
+ Normal: 'Normal',
55
+ Large: 'Large',
56
+ Apply_Style: 'Style'
57
+ };
@@ -0,0 +1,58 @@
1
+ WYMeditor.STRINGS['es'] = {
2
+ Strong: 'Resaltar',
3
+ Bold: 'Negrita',
4
+ Emphasis: 'Cursiva',
5
+ Superscript: 'Superindice',
6
+ Subscript: 'Subindice',
7
+ Ordered_List: 'Lista ordenada',
8
+ Unordered_List: 'Lista sin ordenar',
9
+ Indent: 'Indentado',
10
+ Outdent: 'Sin indentar',
11
+ Undo: 'Deshacer',
12
+ Redo: 'Rehacer',
13
+ Link: 'Enlazar',
14
+ Unlink: 'Eliminar enlace',
15
+ Image: 'Imagen',
16
+ Table: 'Tabla',
17
+ HTML: 'HTML',
18
+ Paragraph: 'Párrafo',
19
+ Heading_1: 'Cabecera 1',
20
+ Heading_2: 'Cabecera 2',
21
+ Heading_3: 'Cabecera 3',
22
+ Heading_4: 'Cabecera 4',
23
+ Heading_5: 'Cabecera 5',
24
+ Heading_6: 'Cabecera 6',
25
+ Preformatted: 'Preformateado',
26
+ Blockquote: 'Cita',
27
+ Table_Header: 'Cabecera de la tabla',
28
+ URL: 'URL',
29
+ Title: 'Título',
30
+ Alternative_Text: 'Texto alternativo',
31
+ Caption: 'Leyenda',
32
+ Summary: 'Summary',
33
+ Number_Of_Rows: 'Número de filas',
34
+ Number_Of_Cols: 'Número de columnas',
35
+ Insert: 'Insertar',
36
+ Submit: 'Enviar',
37
+ Cancel: 'Cancelar',
38
+ Choose: 'Seleccionar',
39
+ Preview: 'Vista previa',
40
+ Paste_From_Word: 'Pegar desde Word',
41
+ Tools: 'Herramientas',
42
+ Containers: 'Contenedores',
43
+ Classes: 'Clases',
44
+ Status: 'Estado',
45
+ Source_Code: 'Código fuente',
46
+ Text_Align: 'Alineación de Texto',
47
+ Image_Align: 'Alineación de Imagen',
48
+ Font_Size: 'Tamaño de Fuente',
49
+ Left: 'Izquierda',
50
+ Right: 'Derecha',
51
+ Center: 'Centro',
52
+ Justify: 'Justificar',
53
+ Small: 'Pequeño',
54
+ Normal: 'Normal',
55
+ Large: 'Grande',
56
+ Apply_Style: 'Estilo'
57
+ };
58
+
@@ -0,0 +1,46 @@
1
+ //Translation To Persian: Ghassem Tofighi (http://ght.ir)
2
+ WYMeditor.STRINGS['fa'] = {
3
+ Strong: 'پررنگ',//Strong
4
+ Emphasis: 'ایتالیک',//Emphasis
5
+ Superscript: 'بالانويس‌ ',//Superscript
6
+ Subscript: 'زيرنويس‌',//Subscript
7
+ Ordered_List: 'لیست مرتب',//Ordered List
8
+ Unordered_List: 'لیست نامرتب',//Unordered List
9
+ Indent: 'افزودن دندانه',//Indent
10
+ Outdent: 'کاهش دندانه',//Outdent
11
+ Undo: 'واگردانی',//Undo
12
+ Redo: 'تکرار',//Redo
13
+ Link: 'ساختن پیوند',//Link
14
+ Unlink: 'برداشتن پیوند',//Unlink
15
+ Image: 'تصویر',//Image
16
+ Table: 'جدول',//Table
17
+ HTML: 'HTML',//HTML
18
+ Paragraph: 'پاراگراف',//Paragraph
19
+ Heading_1: 'سرتیتر ۱',//Heading 1
20
+ Heading_2: 'سرتیتر ۲',//Heading 2
21
+ Heading_3: 'سرتیتر ۳',//Heading 3
22
+ Heading_4: 'سرتیتر ۴',//Heading 4
23
+ Heading_5: 'سرتیتر ۵',//Heading 5
24
+ Heading_6: 'سرتیتر ۶',//Heading 6
25
+ Preformatted: 'قالب آماده',//Preformatted
26
+ Blockquote: 'نقل قول',//Blockquote
27
+ Table_Header: 'سرجدول',//Table Header
28
+ URL: 'آدرس اینترنتی',//URL
29
+ Title: 'عنوان',//Title
30
+ Alternative_Text: 'متن جایگزین',//Alternative text
31
+ Caption: 'عنوان',//Caption
32
+ Summary: 'Summary',
33
+ Number_Of_Rows: 'تعداد سطرها',//Number of rows
34
+ Number_Of_Cols: 'تعداد ستون‌ها',//Number of cols
35
+ Submit: 'فرستادن',//Submit
36
+ Cancel: 'لغو',//Cancel
37
+ Choose: 'انتخاب',//Choose
38
+ Preview: 'پیش‌نمایش',//Preview
39
+ Paste_From_Word: 'انتقال از ورد',//Paste
40
+ Tools: 'ابزار',//Tools
41
+ Containers: '‌قالب‌ها',//Containers
42
+ Classes: 'کلاس‌ها',//Classes
43
+ Status: 'وضعیت',//Status
44
+ Source_Code: 'کد مبدأ'//Source code
45
+ };
46
+