effective_rte 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +5 -0
  3. data/Gemfile +3 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.md +70 -0
  6. data/Rakefile +36 -0
  7. data/app/assets/javascripts/effective_rte.js +6 -0
  8. data/app/assets/javascripts/jquery/jquery-migrate-1.2.1.js +521 -0
  9. data/app/assets/javascripts/wymeditor/iframe/effective/edit-code-division.png +0 -0
  10. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-aside.png +0 -0
  11. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-blockquote.png +0 -0
  12. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-carousel.png +0 -0
  13. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-command.png +0 -0
  14. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-details.png +0 -0
  15. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-figcaption.png +0 -0
  16. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-figure.png +0 -0
  17. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-footer.png +0 -0
  18. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-h1.png +0 -0
  19. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-h2.png +0 -0
  20. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-h3.png +0 -0
  21. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-h4.png +0 -0
  22. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-h5.png +0 -0
  23. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-h6.png +0 -0
  24. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-header.png +0 -0
  25. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-hgroup.png +0 -0
  26. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-mark.png +0 -0
  27. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-meter.png +0 -0
  28. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-nav.png +0 -0
  29. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-p.png +0 -0
  30. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-pre.png +0 -0
  31. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-progress.png +0 -0
  32. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-rp.png +0 -0
  33. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-rt.png +0 -0
  34. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-ruby.png +0 -0
  35. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-section.png +0 -0
  36. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-summary.png +0 -0
  37. data/app/assets/javascripts/wymeditor/iframe/effective/lbl-time.png +0 -0
  38. data/app/assets/javascripts/wymeditor/iframe/effective/readme.md +1 -0
  39. data/app/assets/javascripts/wymeditor/iframe/effective/wymiframe.css +114 -0
  40. data/app/assets/javascripts/wymeditor/iframe/effective/wymiframe.html +28 -0
  41. data/app/assets/javascripts/wymeditor/jquery.wymeditor.js +10858 -0
  42. data/app/assets/javascripts/wymeditor/lang/bg.js +45 -0
  43. data/app/assets/javascripts/wymeditor/lang/ca.js +45 -0
  44. data/app/assets/javascripts/wymeditor/lang/cs.js +45 -0
  45. data/app/assets/javascripts/wymeditor/lang/cy.js +45 -0
  46. data/app/assets/javascripts/wymeditor/lang/da.js +45 -0
  47. data/app/assets/javascripts/wymeditor/lang/de.js +45 -0
  48. data/app/assets/javascripts/wymeditor/lang/en.js +45 -0
  49. data/app/assets/javascripts/wymeditor/lang/es.js +45 -0
  50. data/app/assets/javascripts/wymeditor/lang/fa.js +46 -0
  51. data/app/assets/javascripts/wymeditor/lang/fi.js +44 -0
  52. data/app/assets/javascripts/wymeditor/lang/fr.js +45 -0
  53. data/app/assets/javascripts/wymeditor/lang/gl.js +45 -0
  54. data/app/assets/javascripts/wymeditor/lang/he.js +45 -0
  55. data/app/assets/javascripts/wymeditor/lang/hr.js +45 -0
  56. data/app/assets/javascripts/wymeditor/lang/hu.js +45 -0
  57. data/app/assets/javascripts/wymeditor/lang/it.js +45 -0
  58. data/app/assets/javascripts/wymeditor/lang/ja.js +44 -0
  59. data/app/assets/javascripts/wymeditor/lang/lt.js +45 -0
  60. data/app/assets/javascripts/wymeditor/lang/nb.js +45 -0
  61. data/app/assets/javascripts/wymeditor/lang/nl.js +45 -0
  62. data/app/assets/javascripts/wymeditor/lang/nn.js +45 -0
  63. data/app/assets/javascripts/wymeditor/lang/pl.js +45 -0
  64. data/app/assets/javascripts/wymeditor/lang/pt-br.js +45 -0
  65. data/app/assets/javascripts/wymeditor/lang/pt.js +45 -0
  66. data/app/assets/javascripts/wymeditor/lang/ru.js +45 -0
  67. data/app/assets/javascripts/wymeditor/lang/sk.js +45 -0
  68. data/app/assets/javascripts/wymeditor/lang/sv.js +46 -0
  69. data/app/assets/javascripts/wymeditor/lang/tr.js +45 -0
  70. data/app/assets/javascripts/wymeditor/lang/zh_cn.js +47 -0
  71. data/app/assets/javascripts/wymeditor/plugins/embed/jquery.wymeditor.embed.js +82 -0
  72. data/app/assets/javascripts/wymeditor/plugins/html_cleanup/jquery.wymeditor.html_cleanup.js +43 -0
  73. data/app/assets/javascripts/wymeditor/plugins/insert_assets/insert_assets.png +0 -0
  74. data/app/assets/javascripts/wymeditor/plugins/insert_assets/jquery.wymeditor.insert_assets.js +89 -0
  75. data/app/assets/javascripts/wymeditor/plugins/list/jquery.wymeditor.list.js +60 -0
  76. data/app/assets/javascripts/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js +77 -0
  77. data/app/assets/javascripts/wymeditor/plugins/resizable/readme.txt +124 -0
  78. data/app/assets/javascripts/wymeditor/plugins/table/jquery.wymeditor.table.js +721 -0
  79. data/app/assets/javascripts/wymeditor/plugins/table/table_delete_column.png +0 -0
  80. data/app/assets/javascripts/wymeditor/plugins/table/table_delete_row.png +0 -0
  81. data/app/assets/javascripts/wymeditor/plugins/table/table_insert_column.png +0 -0
  82. data/app/assets/javascripts/wymeditor/plugins/table/table_insert_row.png +0 -0
  83. data/app/assets/javascripts/wymeditor/plugins/table/table_join_row.png +0 -0
  84. data/app/assets/javascripts/wymeditor/plugins/tidy/README +19 -0
  85. data/app/assets/javascripts/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js +78 -0
  86. data/app/assets/javascripts/wymeditor/plugins/tidy/tidy.php +58 -0
  87. data/app/assets/javascripts/wymeditor/plugins/tidy/wand.png +0 -0
  88. data/app/assets/javascripts/wymeditor/skins/effective/icons.png +0 -0
  89. data/app/assets/javascripts/wymeditor/skins/effective/icons/arrow-return-180.png +0 -0
  90. data/app/assets/javascripts/wymeditor/skins/effective/icons/arrow-return.png +0 -0
  91. data/app/assets/javascripts/wymeditor/skins/effective/icons/chain-unchain.png +0 -0
  92. data/app/assets/javascripts/wymeditor/skins/effective/icons/chain.png +0 -0
  93. data/app/assets/javascripts/wymeditor/skins/effective/icons/clipboard-paste-word.png +0 -0
  94. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-alignment-center.png +0 -0
  95. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-alignment-right.png +0 -0
  96. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-alignment.png +0 -0
  97. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-bold.png +0 -0
  98. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-code.png +0 -0
  99. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-heading-1.png +0 -0
  100. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-heading-2.png +0 -0
  101. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-heading-3.png +0 -0
  102. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-heading-4.png +0 -0
  103. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-heading-5.png +0 -0
  104. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-heading-6.png +0 -0
  105. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-indent.png +0 -0
  106. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-italic.png +0 -0
  107. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-list-order.png +0 -0
  108. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-list.png +0 -0
  109. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-outdent.png +0 -0
  110. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-pilcrow.png +0 -0
  111. data/app/assets/javascripts/wymeditor/skins/effective/icons/edit-quotation.png +0 -0
  112. data/app/assets/javascripts/wymeditor/skins/effective/icons/eye.png +0 -0
  113. data/app/assets/javascripts/wymeditor/skins/effective/icons/image.png +0 -0
  114. data/app/assets/javascripts/wymeditor/skins/effective/icons/insert-br.png +0 -0
  115. data/app/assets/javascripts/wymeditor/skins/effective/icons/slides-stack.png +0 -0
  116. data/app/assets/javascripts/wymeditor/skins/effective/icons/table.png +0 -0
  117. data/app/assets/javascripts/wymeditor/skins/effective/skin.css +195 -0
  118. data/app/assets/javascripts/wymeditor/skins/effective/skin.js +40 -0
  119. data/app/assets/stylesheets/effective_rte.css +2 -0
  120. data/app/views/effective_rte/_editor.html.erb +13 -0
  121. data/effective_rte.gemspec +31 -0
  122. data/lib/effective_rte.rb +16 -0
  123. data/lib/effective_rte/engine.rb +24 -0
  124. data/lib/effective_rte/helpers/form_builder.rb +13 -0
  125. data/lib/effective_rte/helpers/form_helper.rb +58 -0
  126. data/lib/effective_rte/hooks/formtastic.rb +12 -0
  127. data/lib/effective_rte/utils.rb +37 -0
  128. data/lib/effective_rte/version.rb +3 -0
  129. metadata +211 -0
@@ -0,0 +1,45 @@
1
+ WYMeditor.STRINGS.nn = {
2
+ Strong: 'Feit',
3
+ Emphasis: 'Utheva',
4
+ Superscript: 'Opphøgd',
5
+ Subscript: 'Nedsenka',
6
+ Ordered_List: 'Nummerert liste',
7
+ Unordered_List: 'Punktliste',
8
+ Indent: 'Rykk inn',
9
+ Outdent: 'Rykk ut',
10
+ Undo: 'Angre',
11
+ Redo: 'Gjentaka',
12
+ Link: 'Lenkje',
13
+ Unlink: 'Ta bort lenkja',
14
+ Image: 'Bilete',
15
+ Table: 'Tabell',
16
+ HTML: 'HTML',
17
+ Paragraph: 'Avsnitt',
18
+ Heading_1: 'Overskrift 1',
19
+ Heading_2: 'Overskrift 2',
20
+ Heading_3: 'Overskrift 3',
21
+ Heading_4: 'Overskrift 4',
22
+ Heading_5: 'Overskrift 5',
23
+ Heading_6: 'Overskrift 6',
24
+ Preformatted: 'Preformatert',
25
+ Blockquote: 'Sitat',
26
+ Table_Header: 'Tabelloverskrift',
27
+ URL: 'URL',
28
+ Title: 'Tittel',
29
+ Alternative_Text: 'Alternativ tekst',
30
+ Caption: 'Overskrift',
31
+ Summary: 'Samandrag',
32
+ Number_Of_Rows: 'Tal på rader',
33
+ Number_Of_Cols: 'Tal på kolonnar',
34
+ Submit: 'Ok',
35
+ Cancel: 'Avbryt',
36
+ Choose: 'Vel',
37
+ Preview: 'Førehandsvis',
38
+ Paste_From_Word: 'Lim inn frå Word',
39
+ Tools: 'Verkty',
40
+ Containers: 'Formatering',
41
+ Classes: 'Klassar',
42
+ Status: 'Status',
43
+ Source_Code: 'Kjeldekode'
44
+ };
45
+
@@ -0,0 +1,45 @@
1
+ WYMeditor.STRINGS.pl = {
2
+ Strong: 'Nacisk',
3
+ Emphasis: 'Emfaza',
4
+ Superscript: 'Indeks górny',
5
+ Subscript: 'Indeks dolny',
6
+ Ordered_List: 'Lista numerowana',
7
+ Unordered_List: 'Lista wypunktowana',
8
+ Indent: 'Zwiększ wcięcie',
9
+ Outdent: 'Zmniejsz wcięcie',
10
+ Undo: 'Cofnij',
11
+ Redo: 'Ponów',
12
+ Link: 'Wstaw link',
13
+ Unlink: 'Usuń link',
14
+ Image: 'Obraz',
15
+ Table: 'Tabela',
16
+ HTML: 'Źródło HTML',
17
+ Paragraph: 'Akapit',
18
+ Heading_1: 'Nagłówek 1',
19
+ Heading_2: 'Nagłówek 2',
20
+ Heading_3: 'Nagłówek 3',
21
+ Heading_4: 'Nagłówek 4',
22
+ Heading_5: 'Nagłówek 5',
23
+ Heading_6: 'Nagłówek 6',
24
+ Preformatted: 'Preformatowany',
25
+ Blockquote: 'Cytat blokowy',
26
+ Table_Header: 'Nagłówek tabeli',
27
+ URL: 'URL',
28
+ Title: 'Tytuł',
29
+ Alternative_Text: 'Tekst alternatywny',
30
+ Caption: 'Tytuł tabeli',
31
+ Summary: 'Summary',
32
+ Number_Of_Rows: 'Liczba wierszy',
33
+ Number_Of_Cols: 'Liczba kolumn',
34
+ Submit: 'Wyślij',
35
+ Cancel: 'Anuluj',
36
+ Choose: 'Wybierz',
37
+ Preview: 'Podgląd',
38
+ Paste_From_Word: 'Wklej z Worda',
39
+ Tools: 'Narzędzia',
40
+ Containers: 'Format',
41
+ Classes: 'Styl',
42
+ Status: 'Status',
43
+ Source_Code: 'Kod źródłowy'
44
+ };
45
+
@@ -0,0 +1,45 @@
1
+ WYMeditor.STRINGS['pt-br'] = {
2
+ Strong: 'Resaltar',
3
+ Emphasis: 'Enfatizar',
4
+ Superscript: 'Sobre escrito',
5
+ Subscript: 'Sub escrito ',
6
+ Ordered_List: 'Lista ordenada',
7
+ Unordered_List: 'Lista desordenada',
8
+ Indent: 'Indentado',
9
+ Outdent: 'Desidentar',
10
+ Undo: 'Desfazer',
11
+ Redo: 'Refazer',
12
+ Link: 'Link',
13
+ Unlink: 'Remover Link',
14
+ Image: 'Imagem',
15
+ Table: 'Tabela',
16
+ HTML: 'HTML',
17
+ Paragraph: 'Parágrafo',
18
+ Heading_1: 'Título 1',
19
+ Heading_2: 'Título 2',
20
+ Heading_3: 'Título 3',
21
+ Heading_4: 'Título 4',
22
+ Heading_5: 'Título 5',
23
+ Heading_6: 'Título 6',
24
+ Preformatted: 'Preformatado',
25
+ Blockquote: 'Citação',
26
+ Table_Header: 'Título de tabela',
27
+ URL: 'URL',
28
+ Title: 'Título',
29
+ Alternative_Text: 'Texto alternativo',
30
+ Caption: 'Legenda',
31
+ Summary: 'Summary',
32
+ Number_Of_Rows: 'Número de linhas',
33
+ Number_Of_Cols: 'Número de colunas',
34
+ Submit: 'Enviar',
35
+ Cancel: 'Cancelar',
36
+ Choose: 'Selecionar',
37
+ Preview: 'Previsualizar',
38
+ Paste_From_Word: 'Copiar do Word',
39
+ Tools: 'Ferramentas',
40
+ Containers: 'Conteneiners',
41
+ Classes: 'Classes',
42
+ Status: 'Estado',
43
+ Source_Code: 'Código fonte'
44
+ };
45
+
@@ -0,0 +1,45 @@
1
+ WYMeditor.STRINGS.pt = {
2
+ Strong: 'Negrito',
3
+ Emphasis: 'Itálico',
4
+ Superscript: 'Sobrescrito',
5
+ Subscript: 'Subsescrito',
6
+ Ordered_List: 'Lista Numerada',
7
+ Unordered_List: 'Lista Marcada',
8
+ Indent: 'Aumentar Indentaçã',
9
+ Outdent: 'Diminuir Indentaçã',
10
+ Undo: 'Desfazer',
11
+ Redo: 'Restaurar',
12
+ Link: 'Link',
13
+ Unlink: 'Tirar link',
14
+ Image: 'Imagem',
15
+ Table: 'Tabela',
16
+ HTML: 'HTML',
17
+ Paragraph: 'Parágrafo',
18
+ Heading_1: 'Título 1',
19
+ Heading_2: 'Título 2',
20
+ Heading_3: 'Título 3',
21
+ Heading_4: 'Título 4',
22
+ Heading_5: 'Título 5',
23
+ Heading_6: 'Título 6',
24
+ Preformatted: 'Pré-formatado',
25
+ Blockquote: 'Citação',
26
+ Table_Header: 'Cabeçalho Tabela',
27
+ URL: 'URL',
28
+ Title: 'Título',
29
+ Alternative_Text: 'Texto Alterativo',
30
+ Caption: 'Título Tabela',
31
+ Summary: 'Summary',
32
+ Number_Of_Rows: 'Número de Linhas',
33
+ Number_Of_Cols: 'Número de Colunas',
34
+ Submit: 'Enviar',
35
+ Cancel: 'Cancelar',
36
+ Choose: 'Escolha',
37
+ Preview: 'Prever',
38
+ Paste_From_Word: 'Colar do Word',
39
+ Tools: 'Ferramentas',
40
+ Containers: 'Containers',
41
+ Classes: 'Classes',
42
+ Status: 'Status',
43
+ Source_Code: 'Código Fonte'
44
+ };
45
+
@@ -0,0 +1,45 @@
1
+ WYMeditor.STRINGS.ru = {
2
+ Strong: 'Жирный',
3
+ Emphasis: 'Наклонный',
4
+ Superscript: 'Надстрочный',
5
+ Subscript: 'Подстрочный',
6
+ Ordered_List: 'Нумерованый список',
7
+ Unordered_List: 'Ненумерованый список',
8
+ Indent: 'Увеличить отступ',
9
+ Outdent: 'Уменьшить отступ',
10
+ Undo: 'Отменить',
11
+ Redo: 'Повторить',
12
+ Link: 'Ссылка',
13
+ Unlink: 'Удалить ссылку',
14
+ Image: 'Изображение',
15
+ Table: 'Таблица',
16
+ HTML: 'Править HTML',
17
+ Paragraph: 'Параграф',
18
+ Heading_1: 'Заголовок 1',
19
+ Heading_2: 'Заголовок 2',
20
+ Heading_3: 'Заголовок 3',
21
+ Heading_4: 'Заголовок 4',
22
+ Heading_5: 'Заголовок 5',
23
+ Heading_6: 'Заголовок 6',
24
+ Preformatted: 'Preformatted',
25
+ Blockquote: 'Цитата',
26
+ Table_Header: 'Заголовок таблицы',
27
+ URL: 'URL',
28
+ Title: 'Заголовок',
29
+ Alternative_Text: 'Альтернативный текст',
30
+ Caption: 'Надпись',
31
+ Summary: 'Summary',
32
+ Number_Of_Rows: 'Кол-во строк',
33
+ Number_Of_Cols: 'Кол-во столбцов',
34
+ Submit: 'Отправить',
35
+ Cancel: 'Отмена',
36
+ Choose: 'Выбор',
37
+ Preview: 'Просмотр',
38
+ Paste_From_Word: 'Вставить из Word',
39
+ Tools: 'Инструменты',
40
+ Containers: 'Контейнеры',
41
+ Classes: 'Классы',
42
+ Status: 'Статус',
43
+ Source_Code: 'Исходный код'
44
+ };
45
+
@@ -0,0 +1,45 @@
1
+ WYMeditor.STRINGS.sk = {
2
+ Strong: 'Tučné',
3
+ Emphasis: 'Kurzíva',
4
+ Superscript: 'Horný index',
5
+ Subscript: 'Dolný index',
6
+ Ordered_List: 'Číslovaný zoznam',
7
+ Unordered_List: 'Nečíslovaný zoznam',
8
+ Indent: 'Zväčšiť odsadenie',
9
+ Outdent: 'Zmenšiť odsadenie',
10
+ Undo: 'Vrátiť',
11
+ Redo: 'Opakovať',
12
+ Link: 'Vytvoriť odkaz',
13
+ Unlink: 'Zrušiť odkaz',
14
+ Image: 'Obrázok',
15
+ Table: 'Tabuľka',
16
+ HTML: 'HTML',
17
+ Paragraph: 'Odstavec',
18
+ Heading_1: 'Nadpis 1. úrovne',
19
+ Heading_2: 'Nadpis 2. úrovne',
20
+ Heading_3: 'Nadpis 3. úrovne',
21
+ Heading_4: 'Nadpis 4. úrovne',
22
+ Heading_5: 'Nadpis 5. úrovne',
23
+ Heading_6: 'Nadpis 6. úrovne',
24
+ Preformatted: 'Predformátovaný text',
25
+ Blockquote: 'Citácia',
26
+ Table_Header: 'Hlavička tabuľky',
27
+ URL: 'URL adresa',
28
+ Title: 'Titulok',
29
+ Alternative_Text: 'Alternatívny text',
30
+ Caption: 'Titulok tabuľky',
31
+ Summary: 'Zhrnutie obsahu',
32
+ Number_Of_Rows: 'Počet riadkov',
33
+ Number_Of_Cols: 'Počet stĺpcov',
34
+ Submit: 'Odoslať',
35
+ Cancel: 'Zrušiť',
36
+ Choose: 'Vybrať',
37
+ Preview: 'Náhľad',
38
+ Paste_From_Word: 'Vložiť z Wordu',
39
+ Tools: 'Nástroje',
40
+ Containers: 'Typy obsahu',
41
+ Classes: 'Triedy',
42
+ Status: 'Stav',
43
+ Source_Code: 'Zdrojový kód'
44
+ };
45
+
@@ -0,0 +1,46 @@
1
+ WYMeditor.STRINGS.sv = {
2
+ Strong: 'Viktigt',
3
+ Emphasis: 'Betoning',
4
+ Superscript: 'Upphöjt',
5
+ Subscript: 'Nedsänkt',
6
+ Ordered_List: 'Nummerlista',
7
+ Unordered_List: 'Punktlista',
8
+ Indent: 'Indrag',
9
+ Outdent: 'Utdrag',
10
+ Undo: 'Ångra',
11
+ Redo: 'Gör om',
12
+ Link: 'Länk',
13
+ Unlink: 'Ta bort länk',
14
+ Image: 'Bild',
15
+ Table: 'Tabell',
16
+ HTML: 'HTML',
17
+ Paragraph: 'Paragraf',
18
+ Heading_1: 'Rubrik 1',
19
+ Heading_2: 'Rubrik 2',
20
+ Heading_3: 'Rubrik 3',
21
+ Heading_4: 'Rubrik 4',
22
+ Heading_5: 'Rubrik 5',
23
+ Heading_6: 'Rubrik 6',
24
+ Preformatted: 'Förformaterad',
25
+ Blockquote: 'Blockcitat',
26
+ Table_Header: 'Tabellrubrik',
27
+ URL: 'URL',
28
+ Title: 'Titel',
29
+ Relationship: 'Relation',
30
+ Alternative_Text: 'Alternativ text',
31
+ Caption: 'Överskrift',
32
+ Summary: 'Summary',
33
+ Number_Of_Rows: 'Antal rader',
34
+ Number_Of_Cols: 'Antal kolumner',
35
+ Submit: 'Skicka',
36
+ Cancel: 'Avbryt',
37
+ Choose: 'Välj',
38
+ Preview: 'Förhandsgranska',
39
+ Paste_From_Word: 'Klistra in från Word',
40
+ Tools: 'Verktyg',
41
+ Containers: 'Formatering',
42
+ Classes: 'Klasser',
43
+ Status: 'Status',
44
+ Source_Code: 'Källkod'
45
+ };
46
+
@@ -0,0 +1,45 @@
1
+ WYMeditor.STRINGS.tr = {
2
+ Strong: 'Kalın',
3
+ Emphasis: 'Vurgu',
4
+ Superscript: 'Üstsimge',
5
+ Subscript: 'Altsimge',
6
+ Ordered_List: 'Sıralı List',
7
+ Unordered_List: 'Sırasız List',
8
+ Indent: 'Girintile',
9
+ Outdent: 'Çıkıntıla',
10
+ Undo: 'Geri Al',
11
+ Redo: 'Yinele',
12
+ Link: 'Bağlantı',
13
+ Unlink: 'Bağlantıyı Kaldır',
14
+ Image: 'Resim',
15
+ Table: 'Tablo',
16
+ HTML: 'HTML',
17
+ Paragraph: 'Parağraf',
18
+ Heading_1: 'Başlık 1',
19
+ Heading_2: 'Başlık 2',
20
+ Heading_3: 'Başlık 3',
21
+ Heading_4: 'Başlık 4',
22
+ Heading_5: 'Başlık 5',
23
+ Heading_6: 'Başlık 6',
24
+ Preformatted: 'Önceden Formatlı',
25
+ Blockquote: 'Alıntı',
26
+ Table_Header: 'Tablo Başlığı',
27
+ URL: 'URL',
28
+ Title: 'Başlık',
29
+ Alternative_Text: 'Alternatif Metin',
30
+ Caption: 'Etiket',
31
+ Summary: 'Özet',
32
+ Number_Of_Rows: 'Satır sayısı',
33
+ Number_Of_Cols: 'Sütun sayısı',
34
+ Submit: 'Gönder',
35
+ Cancel: 'İptal',
36
+ Choose: 'Seç',
37
+ Preview: 'Önizleme',
38
+ Paste_From_Word: 'Word\'den yapıştır',
39
+ Tools: 'Araçlar',
40
+ Containers: 'Kapsayıcılar',
41
+ Classes: 'Sınıflar',
42
+ Status: 'Durum',
43
+ Source_Code: 'Kaynak Kodu'
44
+ };
45
+
@@ -0,0 +1,47 @@
1
+ WYMeditor.STRINGS.zh_cn = {
2
+ Strong: '加粗',
3
+ Emphasis: '斜体',
4
+ Superscript: '上标',
5
+ Subscript: '下标',
6
+ Ordered_List: '有序列表',
7
+ Unordered_List: '无序列表',
8
+ Indent: '增加缩进',
9
+ Outdent: '减少缩进',
10
+ Undo: '撤消',
11
+ Redo: '重做',
12
+ Link: '链接',
13
+ Unlink: '取消链接',
14
+ Image: '图片',
15
+ Table: '表格',
16
+ HTML: 'HTML源代码',
17
+ Paragraph: '段落',
18
+ Heading_1: '标题 1',
19
+ Heading_2: '标题 2',
20
+ Heading_3: '标题 3',
21
+ Heading_4: '标题 4',
22
+ Heading_5: '标题 5',
23
+ Heading_6: '标题 6',
24
+ Preformatted: '原始文本',
25
+ Blockquote: '引语',
26
+ Table_Header: '表头',
27
+ URL: '地址',
28
+ Title: '提示文字',
29
+ Alternative_Text: '失效文字',
30
+ Caption: '标题',
31
+ Summary: 'Summary',
32
+ Number_Of_Rows: '行数',
33
+ Number_Of_Cols: '列数',
34
+ Submit: '提交',
35
+ Cancel: '放弃',
36
+ Choose: '选择',
37
+ Preview: '预览',
38
+ Paste_From_Word: '从Word粘贴纯文本',
39
+ Tools: '工具',
40
+ Containers: '容器',
41
+ Classes: '预定义样式',
42
+ Status: '状态',
43
+ Source_Code: '源代码',
44
+ Attachment: '附件',
45
+ NewParagraph: '新段落'
46
+ };
47
+
@@ -0,0 +1,82 @@
1
+ /**
2
+ * WYMeditor : what you see is What You Mean web-based editor
3
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
4
+ * Dual licensed under the MIT (MIT-license.txt)
5
+ * and GPL (GPL-license.txt) licenses.
6
+ *
7
+ * For further information visit:
8
+ * http://www.wymeditor.org/
9
+ *
10
+ * File Name:
11
+ * jquery.wymeditor.embed.js
12
+ * Experimental embed plugin
13
+ *
14
+ * File Authors:
15
+ * Jonatan Lundin (jonatan.lundin a-t gmail dotcom)
16
+ * Roger Hu (roger.hu a-t gmail dotcom)
17
+ * Scott Nixon (citadelgrad a-t gmail dotcom)
18
+ */
19
+
20
+ (function () {
21
+ function removeItem(item, arr) {
22
+ for (var i = arr.length; i--;) {
23
+ if (arr[i] === item) {
24
+ arr.splice(i, 1);
25
+ }
26
+ }
27
+ return arr;
28
+ }
29
+ if (WYMeditor && WYMeditor.XhtmlValidator._tags.param.attributes) {
30
+
31
+ WYMeditor.XhtmlValidator._tags.embed = {
32
+ "attributes":[
33
+ "allowscriptaccess",
34
+ "allowfullscreen",
35
+ "height",
36
+ "src",
37
+ "type",
38
+ "width"
39
+ ]
40
+ };
41
+
42
+ WYMeditor.XhtmlValidator._tags.param.attributes = {
43
+ '0':'name',
44
+ '1':'type',
45
+ 'valuetype':/^(data|ref|object)$/,
46
+ '2':'valuetype',
47
+ '3':'value'
48
+ };
49
+
50
+ WYMeditor.XhtmlValidator._tags.iframe = {
51
+ "attributes":[
52
+ "allowfullscreen",
53
+ "width",
54
+ "height",
55
+ "src",
56
+ "title",
57
+ "frameborder"
58
+ ]
59
+ };
60
+
61
+ // Override the XhtmlSaxListener to allow param, embed and iframe.
62
+ //
63
+ // We have to do an explicit override
64
+ // of the function instead of just changing the startup parameters
65
+ // because those are only used on creation, and changing them after
66
+ // the fact won't affect the existing XhtmlSaxListener
67
+ var XhtmlSaxListener = WYMeditor.XhtmlSaxListener;
68
+ WYMeditor.XhtmlSaxListener = function () {
69
+ var listener = XhtmlSaxListener.call(this);
70
+ // param, embed and iframe should be inline tags so that they can
71
+ // be nested inside other elements
72
+ removeItem('param', listener.block_tags);
73
+ listener.inline_tags.push('param');
74
+ listener.inline_tags.push('embed');
75
+ listener.inline_tags.push('iframe');
76
+
77
+ return listener;
78
+ };
79
+
80
+ WYMeditor.XhtmlSaxListener.prototype = XhtmlSaxListener.prototype;
81
+ }
82
+ })();