wysiwyg-rails 1.2.8 → 2.0.0.pre.rc.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +40 -15
  3. data/app/assets/javascripts/froala_editor.min.js +6 -8
  4. data/app/assets/javascripts/languages/ar.js +216 -0
  5. data/app/assets/javascripts/languages/bs.js +216 -0
  6. data/app/assets/javascripts/languages/cs.js +216 -0
  7. data/app/assets/javascripts/languages/da.js +216 -0
  8. data/app/assets/javascripts/languages/de.js +216 -0
  9. data/app/assets/javascripts/languages/en_ca.js +160 -0
  10. data/app/assets/javascripts/languages/en_gb.js +160 -0
  11. data/app/assets/javascripts/languages/es.js +216 -0
  12. data/app/assets/javascripts/languages/et.js +216 -0
  13. data/app/assets/javascripts/languages/fa.js +216 -0
  14. data/app/assets/javascripts/languages/fi.js +216 -0
  15. data/app/assets/javascripts/languages/fr.js +216 -0
  16. data/app/assets/javascripts/languages/he.js +216 -0
  17. data/app/assets/javascripts/languages/hr.js +216 -0
  18. data/app/assets/javascripts/languages/hu.js +216 -0
  19. data/app/assets/javascripts/languages/id.js +216 -0
  20. data/app/assets/javascripts/languages/it.js +216 -0
  21. data/app/assets/javascripts/languages/ja.js +216 -0
  22. data/app/assets/javascripts/languages/ko.js +216 -0
  23. data/app/assets/javascripts/languages/me.js +216 -0
  24. data/app/assets/javascripts/languages/nb.js +216 -0
  25. data/app/assets/javascripts/languages/nl.js +216 -0
  26. data/app/assets/javascripts/languages/pl.js +216 -0
  27. data/app/assets/javascripts/languages/pt_br.js +216 -0
  28. data/app/assets/javascripts/languages/pt_pt.js +216 -0
  29. data/app/assets/javascripts/languages/ro.js +217 -0
  30. data/app/assets/javascripts/languages/ru.js +216 -0
  31. data/app/assets/javascripts/languages/sr.js +216 -0
  32. data/app/assets/javascripts/languages/sv.js +216 -0
  33. data/app/assets/javascripts/languages/th.js +216 -0
  34. data/app/assets/javascripts/languages/tr.js +216 -0
  35. data/app/assets/javascripts/languages/uk.js +216 -0
  36. data/app/assets/javascripts/languages/zh_cn.js +216 -0
  37. data/app/assets/javascripts/languages/zh_tw.js +216 -0
  38. data/app/assets/javascripts/plugins/align.min.js +6 -0
  39. data/app/assets/javascripts/plugins/char_counter.min.js +3 -3
  40. data/app/assets/javascripts/plugins/code_view.min.js +6 -0
  41. data/app/assets/javascripts/plugins/colors.min.js +3 -3
  42. data/app/assets/javascripts/plugins/emoticons.min.js +6 -0
  43. data/app/assets/javascripts/plugins/entities.min.js +3 -3
  44. data/app/assets/javascripts/plugins/file.min.js +6 -0
  45. data/app/assets/javascripts/plugins/font_family.min.js +3 -3
  46. data/app/assets/javascripts/plugins/font_size.min.js +3 -3
  47. data/app/assets/javascripts/plugins/fullscreen.min.js +3 -3
  48. data/app/assets/javascripts/plugins/image.min.js +6 -0
  49. data/app/assets/javascripts/plugins/image_manager.min.js +6 -0
  50. data/app/assets/javascripts/plugins/inline_style.min.js +6 -0
  51. data/app/assets/javascripts/plugins/line_breaker.min.js +6 -0
  52. data/app/assets/javascripts/plugins/link.min.js +6 -0
  53. data/app/assets/javascripts/plugins/lists.min.js +3 -3
  54. data/app/assets/javascripts/plugins/paragraph_format.min.js +6 -0
  55. data/app/assets/javascripts/plugins/paragraph_style.min.js +6 -0
  56. data/app/assets/javascripts/plugins/quote.min.js +6 -0
  57. data/app/assets/javascripts/plugins/save.min.js +6 -0
  58. data/app/assets/javascripts/plugins/table.min.js +6 -0
  59. data/app/assets/javascripts/plugins/url.min.js +6 -0
  60. data/app/assets/javascripts/plugins/video.min.js +3 -3
  61. data/app/assets/stylesheets/froala_editor.min.css +3 -3
  62. data/app/assets/stylesheets/froala_style.min.css +3 -3
  63. data/app/assets/stylesheets/plugins/char_counter.min.css +5 -0
  64. data/app/assets/stylesheets/plugins/code_view.min.css +5 -0
  65. data/app/assets/stylesheets/plugins/colors.min.css +5 -0
  66. data/app/assets/stylesheets/plugins/emoticons.min.css +5 -0
  67. data/app/assets/stylesheets/plugins/file.min.css +5 -0
  68. data/app/assets/stylesheets/plugins/fullscreen.min.css +5 -0
  69. data/app/assets/stylesheets/plugins/image.min.css +5 -0
  70. data/app/assets/stylesheets/plugins/image_manager.min.css +5 -0
  71. data/app/assets/stylesheets/plugins/line_breaker.min.css +5 -0
  72. data/app/assets/stylesheets/plugins/table.min.css +5 -0
  73. data/app/assets/stylesheets/plugins/video.min.css +5 -0
  74. data/app/assets/stylesheets/themes/dark.css +825 -0
  75. data/app/assets/stylesheets/themes/dark.min.css +3 -3
  76. data/app/assets/stylesheets/themes/gray.css +825 -0
  77. data/app/assets/stylesheets/themes/gray.min.css +3 -3
  78. data/app/assets/stylesheets/themes/red.css +825 -0
  79. data/app/assets/stylesheets/themes/red.min.css +3 -3
  80. data/app/assets/stylesheets/themes/royal.css +825 -0
  81. data/app/assets/stylesheets/themes/royal.min.css +3 -3
  82. data/lib/wysiwyg-rails/engine.rb +4 -3
  83. data/lib/wysiwyg-rails/version.rb +1 -1
  84. metadata +70 -49
  85. data/app/assets/javascripts/froala_editor_ie8.min.js +0 -6
  86. data/app/assets/javascripts/langs/ar.js +0 -94
  87. data/app/assets/javascripts/langs/bs.js +0 -94
  88. data/app/assets/javascripts/langs/cs.js +0 -94
  89. data/app/assets/javascripts/langs/da.js +0 -94
  90. data/app/assets/javascripts/langs/de.js +0 -94
  91. data/app/assets/javascripts/langs/en_ca.js +0 -94
  92. data/app/assets/javascripts/langs/en_gb.js +0 -94
  93. data/app/assets/javascripts/langs/en_us.js +0 -94
  94. data/app/assets/javascripts/langs/es.js +0 -94
  95. data/app/assets/javascripts/langs/et.js +0 -90
  96. data/app/assets/javascripts/langs/fa.js +0 -94
  97. data/app/assets/javascripts/langs/fi.js +0 -94
  98. data/app/assets/javascripts/langs/fr.js +0 -94
  99. data/app/assets/javascripts/langs/he.js +0 -94
  100. data/app/assets/javascripts/langs/hr.js +0 -94
  101. data/app/assets/javascripts/langs/hu.js +0 -94
  102. data/app/assets/javascripts/langs/id.js +0 -94
  103. data/app/assets/javascripts/langs/it.js +0 -94
  104. data/app/assets/javascripts/langs/ja.js +0 -94
  105. data/app/assets/javascripts/langs/ko.js +0 -94
  106. data/app/assets/javascripts/langs/me.js +0 -94
  107. data/app/assets/javascripts/langs/nb.js +0 -94
  108. data/app/assets/javascripts/langs/nl.js +0 -94
  109. data/app/assets/javascripts/langs/pl.js +0 -94
  110. data/app/assets/javascripts/langs/pt_br.js +0 -94
  111. data/app/assets/javascripts/langs/pt_pt.js +0 -94
  112. data/app/assets/javascripts/langs/ro.js +0 -94
  113. data/app/assets/javascripts/langs/ru.js +0 -94
  114. data/app/assets/javascripts/langs/sr.js +0 -94
  115. data/app/assets/javascripts/langs/sv.js +0 -94
  116. data/app/assets/javascripts/langs/th.js +0 -94
  117. data/app/assets/javascripts/langs/tr.js +0 -94
  118. data/app/assets/javascripts/langs/uk.js +0 -94
  119. data/app/assets/javascripts/langs/zh_cn.js +0 -94
  120. data/app/assets/javascripts/langs/zh_tw.js +0 -94
  121. data/app/assets/javascripts/plugins/block_styles.min.js +0 -6
  122. data/app/assets/javascripts/plugins/file_upload.min.js +0 -6
  123. data/app/assets/javascripts/plugins/inline_styles.min.js +0 -6
  124. data/app/assets/javascripts/plugins/media_manager.min.js +0 -6
  125. data/app/assets/javascripts/plugins/tables.min.js +0 -6
  126. data/app/assets/javascripts/plugins/urls.min.js +0 -6
  127. data/app/assets/stylesheets/froala_content.min.css +0 -5
@@ -1,94 +0,0 @@
1
- /*!
2
- * froala_editor v1.2.8 (https://www.froala.com/wysiwyg-editor)
3
- * License https://www.froala.com/wysiwyg-editor/terms
4
- * Copyright 2014-2015 Froala Labs
5
- */
6
-
7
- /**
8
- * Simplified Chinese spoken in China.
9
- */
10
-
11
- $.Editable.LANGS['zh_cn'] = {
12
- translation: {
13
- "Bold": "\u7c97\u4f53",
14
- "Italic": "\u659c\u4f53",
15
- "Underline": "\u4e0b\u5212\u7ebf",
16
- "Strikethrough": "\u5220\u9664\u7ebf",
17
- "Font Size": "\u5b57\u53f7",
18
- "Color": "\u989c\u8272",
19
- "Background": "\u80cc\u666f",
20
- "Text": "\u6587\u5b57",
21
- "Format Block": "\u683c\u5f0f",
22
- "Normal": "\u6b63\u5e38",
23
- "Paragraph": "\u6bb5\u843d",
24
- "Code": "\u4ee3\u7801",
25
- "Quote": "\u5f15\u7528",
26
- "Heading 1": "\u6807\u98981",
27
- "Heading 2": "\u6807\u98982",
28
- "Heading 3": "\u6807\u98983",
29
- "Heading 4": "\u6807\u98984",
30
- "Heading 5": "\u6807\u98985",
31
- "Heading 6": "\u6807\u98986",
32
- "Block Style": "\u5ea7\u5f0f",
33
- "Alignment": "\u5bf9\u9f50\u65b9\u5f0f",
34
- "Align Left": "\u5de6\u5bf9\u9f50",
35
- "Align Center": "\u5c45\u4e2d",
36
- "Align Right": "\u53f3\u5bf9\u9f50",
37
- "Justify": "\u4e24\u7aef\u5bf9\u9f50",
38
- "Numbered List": "\u7f16\u53f7\u5217\u8868",
39
- "Bulleted List": "\u9879\u76ee\u7b26\u53f7",
40
- "Indent Less": "\u51cf\u5c11\u7f29\u8fdb",
41
- "Indent More": "\u589e\u52a0\u7f29\u8fdb",
42
- "Select All": "\u5168\u9009",
43
- "Insert Link": "\u63d2\u5165\u94fe\u63a5",
44
- "Insert Image": "\u63d2\u5165\u56fe\u7247",
45
- "Insert Video": "\u63d2\u5165\u89c6\u9891",
46
- "Undo": "\u64a4\u6d88",
47
- "Redo": "\u91cd\u590d",
48
- "Show HTML": "\u663e\u793a\u7684HTML",
49
- "Float Left": "\u5de6\u5bf9\u9f50",
50
- "Float None": "\u65e0",
51
- "Float Right": "\u53f3\u5bf9\u9f50",
52
- "Replace Image": "\u66f4\u6362\u56fe\u50cf",
53
- "Remove Image": "\u5220\u9664\u56fe\u50cf",
54
- "Title": "\u6807\u9898",
55
- "Drop image": "\u56fe\u50cf\u62d6\u653e",
56
- "or click": "\u6216\u70b9\u51fb",
57
- "or": "\u6216",
58
- "Enter URL": "\u8f93\u5165\u7f51\u5740",
59
- "Please wait!": "\u8bf7\u7a0d\u7b49\uff01",
60
- "Are you sure? Image will be deleted.": "\u4f60\u786e\u5b9a\u5417\uff1f\u56fe\u50cf\u5c06\u88ab\u5220\u9664\u3002",
61
- "UNLINK": "\u5220\u9664\u94fe\u63a5",
62
- "Open in new tab": "\u5f00\u542f\u5728\u65b0\u6807\u7b7e\u9875",
63
- "Type something": "\u8f93\u5165\u4e00\u4e9b\u5185\u5bb9",
64
- "Cancel": "\u53d6\u6d88",
65
- "OK": "\u786e\u5b9a",
66
- "Manage images": "\u7ba1\u7406\u56fe\u50cf",
67
- "Delete": "\u5220\u9664",
68
- "Font Family": "\u5b57\u4f53",
69
- "Insert Horizontal Line": "\u63d2\u5165\u6c34\u5e73\u7ebf",
70
- "Table": "\u8868\u683c",
71
- "Insert table": "\u63d2\u5165\u8868\u683c",
72
- "Cell": "\u5355\u5143\u683c",
73
- "Row": "\u884c",
74
- "Column": "\u5217",
75
- "Delete table": "\u5220\u9664\u8868\u683c",
76
- "Insert cell before": "\u524d\u63d2\u5165\u5355\u5143\u683c",
77
- "Insert cell after": "\u540e\u63d2\u5165\u7535\u6c60",
78
- "Delete cell": "\u5220\u9664\u5355\u5143\u683c",
79
- "Merge cells": "\u5408\u5e76\u5355\u5143\u683c",
80
- "Horizontal split": "\u6c34\u5e73\u5206\u5272",
81
- "Vertical split": "\u5782\u76f4\u5206\u5272",
82
- "Insert row above": "\u5728\u4e0a\u65b9\u63d2\u5165",
83
- "Insert row below": "\u5728\u4e0b\u65b9\u63d2\u5165",
84
- "Delete row": "\u5220\u9664\u884c",
85
- "Insert column before": "\u5728\u5de6\u4fa7\u63d2\u5165",
86
- "Insert column after": "\u5728\u53f3\u4fa7\u63d2\u5165",
87
- "Delete column": "\u5220\u9664\u5217",
88
- "Uploading image": "\u4e0a\u4f20\u56fe\u50cf",
89
- "Upload File": "\u4e0a\u4f20\u6587\u4ef6",
90
- "Drop File": "\u6587\u4ef6\u62d6\u653e",
91
- "Clear formatting": "\u683c\u5f0f\u5316\u5220\u9664"
92
- },
93
- direction: "ltr"
94
- };
@@ -1,94 +0,0 @@
1
- /*!
2
- * froala_editor v1.2.8 (https://www.froala.com/wysiwyg-editor)
3
- * License https://www.froala.com/wysiwyg-editor/terms
4
- * Copyright 2014-2015 Froala Labs
5
- */
6
-
7
- /**
8
- * Traditional Chinese spoken in Taiwan.
9
- */
10
-
11
- $.Editable.LANGS['zh_tw'] = {
12
- translation: {
13
- "Bold": "\u7c97\u9ad4",
14
- "Italic": "\u659c\u9ad4",
15
- "Underline": "\u5e95\u7dda",
16
- "Strikethrough": "\u522a\u9664\u7dda",
17
- "Font Size": "\u5b57\u578b\u5927\u5c0f",
18
- "Color": "\u984f\u8272",
19
- "Background": "\u80cc\u666f",
20
- "Text": "\u6587\u5b57",
21
- "Format Block": "\u683c\u5f0f",
22
- "Normal": "\u6b63\u5e38",
23
- "Paragraph": "\u6bb5\u843d",
24
- "Code": "\u7a0b\u5f0f\u78bc",
25
- "Quote": "\u5f15\u7528",
26
- "Heading 1": "\u6a19\u984c 1",
27
- "Heading 2": "\u6a19\u984c 2",
28
- "Heading 3": "\u6a19\u984c 3",
29
- "Heading 4": "\u6a19\u984c 4",
30
- "Heading 5": "\u6a19\u984c 5",
31
- "Heading 6": "\u6a19\u984c 6",
32
- "Block Style": "\u5ea7\u5f0f",
33
- "Alignment": "\u5c0d\u9f4a",
34
- "Align Left": "\u7f6e\u5de6\u5c0d\u9f4a",
35
- "Align Center": "\u7f6e\u4e2d\u5c0d\u9f4a",
36
- "Align Right": "\u7f6e\u53f3\u5c0d\u9f4a",
37
- "Justify": "\u5de6\u53f3\u5c0d\u9f4a",
38
- "Numbered List": "\u6578\u5b57\u6e05\u55ae",
39
- "Bulleted List": "\u9805\u76ee\u6e05\u55ae",
40
- "Indent Less": "\u6e1b\u5c11\u7e2e\u6392",
41
- "Indent More": "\u589e\u52a0\u7e2e\u6392",
42
- "Select All": "\u5168\u9078",
43
- "Insert Link": "\u63d2\u5165\u9023\u7d50",
44
- "Insert Image": "\u63d2\u5165\u5716\u7247",
45
- "Insert Video": "\u63d2\u5165\u5f71\u97f3",
46
- "Undo": "\u5fa9\u539f",
47
- "Redo": "\u53d6\u6d88\u5fa9\u539f",
48
- "Show HTML": "\u663e\u793a\u7684\u0048\u0054\u004d\u004c",
49
- "Float Left": "\u5de6\u908a",
50
- "Float None": "\u7121",
51
- "Float Right": "\u53f3\u908a",
52
- "Replace Image": "\u66f4\u6362\u56fe\u50cf",
53
- "Remove Image": "\u5220\u9664\u56fe\u50cf",
54
- "Title": "\u6a19\u984c",
55
- "Drop image": "\u56fe\u50cf\u62d6\u653e",
56
- "or click": "\u6216\u70b9\u51fb",
57
- "or": "\u6216",
58
- "Enter URL": "\u8f93\u5165\u7f51\u5740",
59
- "Please wait!": "\u8bf7\u7a0d\u7b49\uff01",
60
- "Are you sure? Image will be deleted.": "\u4f60\u786e\u5b9a\u5417\uff1f\u56fe\u50cf\u5c06\u88ab\u5220\u9664\u3002",
61
- "UNLINK": "\u79fb\u9664\u9023\u7d50",
62
- "Open in new tab": "\u5f00\u542f\u5728\u65b0\u6807\u7b7e\u9875",
63
- "Type something": "\u8f93\u5165\u4e00\u4e9b\u5185\u5bb9",
64
- "Cancel": "\u53d6\u6d88",
65
- "OK": "\u78ba\u5b9a",
66
- "Manage images": "\u7ba1\u7406\u5716\u50cf",
67
- "Delete": "\u522a\u9664",
68
- "Font Family": "\u5b57\u9ad4",
69
- "Insert Horizontal Line": "\u63d2\u5165\u6c34\u5e73\u7dda",
70
- "Table": "\u8868\u683c",
71
- "Insert table": "\u63d2\u5165\u8868\u683c",
72
- "Cell": "\u5355\u5143\u683c",
73
- "Row": "\u884c",
74
- "Column": "\u5217",
75
- "Delete table": "\u5220\u9664\u8868\u683c",
76
- "Insert cell before": "\u524d\u63d2\u5165\u55ae\u5143\u683c",
77
- "Insert cell after": "\u5f8c\u63d2\u5165\u96fb\u6c60",
78
- "Delete cell": "\u522a\u9664\u55ae\u5143\u683c",
79
- "Merge cells": "\u5408\u4f75\u55ae\u5143\u683c",
80
- "Horizontal split": "\u6c34\u5e73\u5206\u5272",
81
- "Vertical split": "\u5782\u76f4\u5206\u5272",
82
- "Insert row above": "\u5728\u4e0a\u65b9\u63d2\u5165",
83
- "Insert row below": "\u5728\u4e0b\u65b9\u63d2\u5165",
84
- "Delete row": "\u5220\u9664\u884c",
85
- "Insert column before": "\u5728\u5de6\u4fa7\u63d2\u5165",
86
- "Insert column after": "\u5728\u53f3\u4fa7\u63d2\u5165",
87
- "Delete column": "\u5220\u9664\u5217",
88
- "Uploading image": "\u4e0a\u50b3\u5716\u50cf",
89
- "Upload File": "\u4e0a\u50b3\u6587\u4ef6",
90
- "Drop File": "\u6587\u4ef6\u62d6\u653e",
91
- "Clear formatting": "\u683c\u5f0f\u5316\u522a\u9664"
92
- },
93
- direction: "ltr"
94
- };
@@ -1,6 +0,0 @@
1
- /*!
2
- * froala_editor v1.2.8 (https://www.froala.com/wysiwyg-editor)
3
- * License https://www.froala.com/wysiwyg-editor/terms
4
- * Copyright 2014-2015 Froala Labs
5
- */
6
- !function(a){a.Editable.prototype.refreshBlockStyles=function(){var b=this.getSelectionElements()[0],c=b.tagName.toLowerCase();this.$bttn_wrapper.find(".fr-block-style").empty();var d=this.options.blockStyles[c];if(void 0===d&&(d=this.options.defaultBlockStyle),void 0!==d){this.$bttn_wrapper.find('.fr-dropdown > button[data-name="blockStyle"].fr-trigger').removeAttr("disabled");for(var e in d){var f=d[e],g="";a(b).hasClass(e)&&(g=' class="active"'),this.$bttn_wrapper.find(".fr-block-style").append(a("<li"+g+">").append(a('<a href="#" data-text="true">').text(f).addClass(e)).attr("data-cmd","blockStyle").attr("data-val",e))}}},a.Editable.commands=a.extend(a.Editable.commands,{blockStyle:{title:"Block Style",icon:"fa fa-magic",refreshOnShow:a.Editable.prototype.refreshBlockStyles,callback:function(a,b,c){this.blockStyle(b,c)},undo:!0}}),a.Editable.DEFAULTS=a.extend(a.Editable.DEFAULTS,{defaultBlockStyle:{"f-italic":"Italic","f-typewriter":"Typewriter","f-spaced":"Spaced","f-uppercase":"Uppercase"},blockStylesToggle:!0,blockStyles:{}}),a.Editable.prototype.command_dispatcher=a.extend(a.Editable.prototype.command_dispatcher,{blockStyle:function(a){var b=this.buildDropdownBlockStyle(a),c=this.buildDropdownButton(a,b);return c}}),a.Editable.prototype.buildDropdownBlockStyle=function(){var a='<ul class="fr-dropdown-menu fr-block-style">';return a+="</ul>"},a.Editable.prototype.blockStyle=function(b){this.saveSelectionByMarkers(),this.wrapText(),this.restoreSelectionByMarkers();var c=this.getSelectionElements()[0].tagName;this.saveSelectionByMarkers();for(var d=this.getSelectionElements(),e=0;e<d.length;e++){var f=d[e];f!=this.$element.get(0)&&f.tagName==c&&(a(f).find(d).length>0||(a(f).hasClass(b)?(a(f).removeClass(b),""===a(f).attr("class")&&a(f).removeAttr("class")):(this.options.blockStylesToggle&&a(f).removeAttr("class"),a(f).addClass(b))))}this.cleanupLists(),this.restoreSelectionByMarkers(),this.triggerEvent("blockStyle")}}(jQuery);
@@ -1,6 +0,0 @@
1
- /*!
2
- * froala_editor v1.2.8 (https://www.froala.com/wysiwyg-editor)
3
- * License https://www.froala.com/wysiwyg-editor/terms
4
- * Copyright 2014-2015 Froala Labs
5
- */
6
- !function(a){a.Editable.commands=a.extend(a.Editable.commands,{uploadFile:{title:"Upload File",icon:"fa fa-paperclip",callback:function(){this.insertFile()},undo:!1}}),a.Editable.DEFAULTS=a.extend(a.Editable.DEFAULTS,{allowedFileTypes:["*"],fileDeleteUrl:null,fileDeleteParams:{},fileUploadParams:{},fileUploadURL:"http://i.froala.com/upload",fileUploadParam:"file",maxFileSize:10485760,useFileName:!0}),a.Editable.prototype.showFileWrapper=function(){this.$file_wrapper&&this.$file_wrapper.show()},a.Editable.prototype.hideFileWrapper=function(){this.$file_wrapper&&(this.$file_wrapper.hide(),this.$file_wrapper.find("input").blur())},a.Editable.prototype.showFileUpload=function(){this.hidePopups(),this.showFileWrapper()},a.Editable.prototype.insertFile=function(){this.closeImageMode(),this.imageMode=!1,this.showFileUpload(),this.saveSelectionByMarkers(),this.options.inlineMode||this.positionPopup("uploadFile")},a.Editable.prototype.fileUploadHTML=function(){var b='<div class="froala-popup froala-file-popup" style="display: none;"><h4><span data-text="true">Upload file</span><i title="Cancel" class="fa fa-times" id="f-file-close-'+this._id+'"></i></h4>';return b+='<div id="f-file-list-'+this._id+'">',b+='<div class="f-popup-line drop-upload">',b+='<div class="f-upload" id="f-file-upload-div-'+this._id+'"><strong data-text="true">Drop File</strong><br>(<span data-text="true">or click</span>)<form target="file-frame-'+this._id+'" enctype="multipart/form-data" encoding="multipart/form-data" action="'+this.options.fileUploadURL+'" method="post" id="f-file-form-'+this._id+'"><input id="f-file-upload-'+this._id+'" type="file" name="'+this.options.fileUploadParam+'" accept="/*"></form></div>',this.browser.msie&&a.Editable.getIEversion()<=9&&(b+='<iframe id="file-frame-'+this._id+'" name="file-frame-'+this._id+'" src="javascript:false;" style="width:0; height:0; border:0px solid #FFF; position: fixed; z-index: -1;" data-loaded="true"></iframe>'),b+="</div>",b+="</div>",b+='<p class="f-progress" id="f-file-progress-'+this._id+'"><span></span></p>',b+="</div>"},a.Editable.prototype.buildFileDrag=function(){var b=this;b.$file_wrapper.on("dragover","#f-file-upload-div-"+this._id,function(){return a(this).addClass("f-hover"),!1}),b.$file_wrapper.on("dragend","#f-file-upload-div-"+this._id,function(){return a(this).removeClass("f-hover"),!1}),b.$file_wrapper.on("drop","#f-file-upload-div-"+this._id,function(c){c.preventDefault(),c.stopPropagation(),a(this).removeClass("f-hover"),b.uploadFile(c.originalEvent.dataTransfer.files)}),b.$element.on("drop",function(c){var d=c.originalEvent.dataTransfer.files;if(0===a(".froala-element img.fr-image-move").length&&c.originalEvent.dataTransfer&&d&&d.length){if(b.isDisabled)return!1;b.options.allowedImageTypes.indexOf(d[0].type.replace(/image\//g,""))<0&&(b.closeImageMode(),b.hide(),b.imageMode=!1,b.initialized||(b.$element.unbind("mousedown.element"),b.lateInit()),b.insertMarkersAtPoint(c.originalEvent),b.showByCoordinates(c.originalEvent.pageX,c.originalEvent.pageY),b.uploadFile(d),c.preventDefault(),c.stopPropagation())}})},a.Editable.prototype.buildFileUpload=function(){this.$file_wrapper=a(this.fileUploadHTML()),this.$popup_editor.append(this.$file_wrapper),this.buildFileDrag();var b=this;if(this.$file_wrapper.on("mouseup touchend",a.proxy(function(a){this.isResizing()||a.stopPropagation()},this)),this.addListener("hidePopups",a.proxy(function(){this.hideFileWrapper()},this)),this.$file_progress_bar=this.$file_wrapper.find("p#f-file-progress-"+this._id),this.browser.msie&&a.Editable.getIEversion()<=9){var c=this.$file_wrapper.find("iframe").get(0);c.attachEvent?c.attachEvent("onload",function(){b.iFrameLoad()}):c.onload=function(){b.iFrameLoad()}}this.$file_wrapper.on("change",'input[type="file"]',function(){if(void 0!==this.files)b.uploadFile(this.files);else{var c=a(this).parents("form");c.find('input[type="hidden"]').remove();var d;for(d in b.options.fileUploadParams)c.prepend('<input type="hidden" name="'+d+'" value="'+b.options.fileUploadParams[d]+'" />');b.$file_wrapper.find("#f-file-list-"+b._id).hide(),b.$file_progress_bar.show(),b.$file_progress_bar.find("span").css("width","100%").text("Please wait!"),b.showFileUpload(),c.submit()}a(this).val("")}),this.$file_wrapper.on(this.mouseup,"#f-file-close-"+this._id,a.proxy(function(a){a.stopPropagation(),a.preventDefault(),this.$bttn_wrapper.show(),this.hideFileWrapper(),this.restoreSelection(),this.focus(),this.hide()},this)),this.$file_wrapper.on("click",function(a){a.stopPropagation()}),this.$file_wrapper.on("click","*",function(a){a.stopPropagation()})},a.Editable.initializers.push(a.Editable.prototype.buildFileUpload),a.Editable.prototype.uploadFile=function(b){if(!this.triggerEvent("beforeFileUpload",[b],!1))return!1;if(void 0!==b&&b.length>0){var c;if(this.drag_support.formdata&&(c=this.drag_support.formdata?new FormData:null),c){var d;for(d in this.options.fileUploadParams)c.append(d,this.options.fileUploadParams[d]);if(c.append(this.options.fileUploadParam,b[0]),b[0].size>this.options.maxFileSize)return this.throwFileError(5),!1;if(this.options.allowedFileTypes.indexOf(b[0].type)<0&&this.options.allowedFileTypes.indexOf("*")<0)return this.throwFileError(6),!1}if(c){var e;if(this.options.crossDomain)e=this.createCORSRequest("POST",this.options.fileUploadURL);else{e=new XMLHttpRequest,e.open("POST",this.options.fileUploadURL);for(var f in this.options.headers)e.setRequestHeader(f,this.options.headers[f])}var g=b[0].name;e.onload=a.proxy(function(){this.$file_progress_bar.find("span").css("width","100%").text("Please wait!");try{e.status>=200&&e.status<300?this.parseFileResponse(e.responseText,g):this.throwFileError(3)}catch(a){this.throwFileError(4)}},this),e.onerror=a.proxy(function(){this.throwFileError(3)},this),e.upload.onprogress=a.proxy(function(a){if(a.lengthComputable){var b=a.loaded/a.total*100|0;this.$file_progress_bar.find("span").css("width",b+"%")}},this),e.send(c),this.$file_wrapper.find("#f-file-list-"+this._id).hide(),this.$file_progress_bar.show(),this.showFileUpload()}}},a.Editable.prototype.throwFileError=function(a){var b="Unknown file upload error.";1==a?b="Bad link.":2==a?b="No link in upload response.":3==a?b="Error during file upload.":4==a?b="Parsing response failed.":5==a?b="File too large.":6==a?b="Invalid file type.":7==a&&(b="File can be uploaded only to same domain in IE 8 and IE 9."),this.triggerEvent("fileError",[{code:a,message:b}],!1),this.hideFileLoader()},a.Editable.prototype.hideFileLoader=function(){this.$file_progress_bar.hide(),this.$file_progress_bar.find("span").css("width","0%").text(""),this.$file_wrapper.find("#f-file-list-"+this._id).show()},a.Editable.prototype.throwFileErrorWithMessage=function(a){this.triggerEvent("fileError",[{message:a,code:0}],!1),this.hideFileLoader()},a.Editable.prototype.parseFileResponse=function(b,c){try{if(!this.triggerEvent("afterFileUpload",[b],!1))return!1;var d=a.parseJSON(b);d.link?this.writeFile(d.link,c,b):d.error?this.throwFileErrorWithMessage(d.error):this.throwFileError(2)}catch(e){this.throwFileError(4)}},a.Editable.prototype.writeFile=function(a,b,c){this.restoreSelectionByMarkers(),this.focus(),this.options.useFileName||""===this.text()||(b=this.text()),this.insertHTML('<a class="fr-file" href="'+this.sanitizeURL(a)+'">'+b+"</a>"),this.hide(),this.hideFileLoader(),this.focus(),this.triggerEvent("fileUploaded",[b,a,c])}}(jQuery);
@@ -1,6 +0,0 @@
1
- /*!
2
- * froala_editor v1.2.8 (https://www.froala.com/wysiwyg-editor)
3
- * License https://www.froala.com/wysiwyg-editor/terms
4
- * Copyright 2014-2015 Froala Labs
5
- */
6
- !function(a){a.Editable.prototype.refreshInlineStyles=function(){var b=this.getSelectionElements()[0],c=b.tagName.toLowerCase();this.$bttn_wrapper.find(".fr-block-style").empty();var d=this.options.blockStyles[c];if(void 0===d&&(d=this.options.defaultBlockStyle),void 0!==d){this.$bttn_wrapper.find('.fr-dropdown > button[data-name="blockStyle"].fr-trigger').removeAttr("disabled");for(var e in d){var f=d[e],g="";a(b).hasClass(e)&&(g=' class="active"'),this.$bttn_wrapper.find(".fr-block-style").append(a("<li"+g+">").append(a('<a href="#" data-text="true">').text(f).addClass(e)).attr("data-cmd","blockStyle").attr("data-val",e))}}},a.Editable.commands=a.extend(a.Editable.commands,{inlineStyle:{title:"Inline Style",icon:"fa fa-paint-brush",refreshOnShow:a.Editable.prototype.refreshInlineStyles,callback:function(a,b){this.applyInlineStyles(b)},callbackWithoutSelection:function(a,b){this.applyInlineStyles(b)}}}),a.Editable.DEFAULTS=a.extend(a.Editable.DEFAULTS,{inlineStyles:{"Big Red":"font-size: 20px; color: red;","Small Blue":"font-size: 14px; color: blue;"}}),a.Editable.prototype.command_dispatcher=a.extend(a.Editable.prototype.command_dispatcher,{inlineStyle:function(a){var b=this.buildDropdownInlineStyle(),c=this.buildDropdownButton(a,b);return c}}),a.Editable.prototype.buildDropdownInlineStyle=function(){var a='<ul class="fr-dropdown-menu fr-inline-style">';for(var b in this.options.inlineStyles)a+='<li data-cmd="inlineStyle" data-val="'+b+'"><a href="#" style="'+this.options.inlineStyles[b]+'">'+b+"</a></li>";return a+="</ul>"},a.Editable.prototype.applyInlineStyles=function(b){this.insertHTML(""!==this.text()?this.start_marker+'<span data-fr-verified="true" style="'+this.options.inlineStyles[b]+'">'+this.text()+"</span>"+this.end_marker:'<span data-fr-verified="true" style="'+this.options.inlineStyles[b]+'">'+this.markers_html+a.Editable.INVISIBLE_SPACE+"</span>"),this.restoreSelectionByMarkers(),this.triggerEvent("inlineStyle")},a.Editable.prototype.startInInlineStyles=function(a){for(var b in this.options.inlineStyles[a])this._startInFontExec(b.replace(/([A-Z])/g,"-$1").toLowerCase(),null,this.options.inlineStyles[a][b]);this.triggerEvent("inlineStyle")}}(jQuery);
@@ -1,6 +0,0 @@
1
- /*!
2
- * froala_editor v1.2.8 (https://www.froala.com/wysiwyg-editor)
3
- * License https://www.froala.com/wysiwyg-editor/terms
4
- * Copyright 2014-2015 Froala Labs
5
- */
6
- !function(a){a.Editable.DEFAULTS=a.extend(a.Editable.DEFAULTS,{mediaManager:!0,imagesLoadURL:"http://i.froala.com/images",imagesLoadParams:{}}),a.Editable.prototype.showMediaManager=function(){this.$image_modal.show(),this.$overlay.show(),this.loadImages(),this.$document.find("body").css("overflow","hidden")},a.Editable.prototype.hideMediaManager=function(){this.$image_modal.hide(),this.$overlay.hide(),this.$document.find("body").css("overflow","")},a.Editable.prototype.mediaModalHTML=function(){var a='<div class="froala-modal"><div class="f-modal-wrapper"><h4><span data-text="true">Manage images</span><i title="Cancel" class="fa fa-times" id="f-modal-close-'+this._id+'"></i></h4>';return a+='<img class="f-preloader" id="f-preloader-'+this._id+'" alt="Loading..." src="'+this.options.preloaderSrc+'" style="display: none;">',a+=WYSIWYGModernizr.touch?'<div class="f-image-list f-touch" id="f-image-list-'+this._id+'"></div>':'<div class="f-image-list" id="f-image-list-'+this._id+'"></div>',a+="</div></div>"},a.Editable.prototype.buildMediaManager=function(){this.$image_modal=a(this.mediaModalHTML()).appendTo("body"),this.$preloader=this.$image_modal.find("#f-preloader-"+this._id),this.$media_images=this.$image_modal.find("#f-image-list-"+this._id),this.$overlay=a('<div class="froala-overlay">').appendTo("body"),this.$overlay.on("mouseup",a.proxy(function(a){this.isResizing()||a.stopPropagation()},this)),this.$image_modal.on("mouseup",a.proxy(function(a){this.isResizing()||a.stopPropagation()},this)),this.$image_modal.find("i#f-modal-close-"+this._id).click(a.proxy(function(){this.hideMediaManager()},this)),this.$media_images.on(this.mouseup,"img",a.proxy(function(b){b.stopPropagation();var c=b.currentTarget;this.writeImage(a(c).attr("src")),this.hideMediaManager()},this)),this.$media_images.on(this.mouseup,".f-delete-img",a.proxy(function(b){b.stopPropagation();var c=a(b.currentTarget).prev(),d="Are you sure? Image will be deleted.";a.Editable.LANGS[this.options.language]&&(d=a.Editable.LANGS[this.options.language].translation[d]),confirm(d)&&this.triggerEvent("beforeDeleteImage",[a(c)],!1)!==!1&&(a(c).parent().addClass("f-img-deleting"),this.deleteImage(a(c)))},this)),this.options.mediaManager&&(this.$image_wrapper.on("click","#f-browser-"+this._id,a.proxy(function(){this.showMediaManager()},this)).on("click","#f-browser-"+this._id+" i",a.proxy(function(){this.showMediaManager()},this)),this.$image_wrapper.find("#f-browser-"+this._id).show()),this.hideMediaManager()},a.Editable.prototype.destroyMediaManager=function(){this.hideMediaManager(),this.$overlay.html("").removeData().remove(),this.$image_modal.html("").removeData().remove()},a.Editable.prototype.initMediaManager=function(){return this.options.mediaManager?(this.buildMediaManager(),void this.addListener("destroy",this.destroyMediaManager)):!1},a.Editable.initializers.push(a.Editable.prototype.initMediaManager),a.Editable.prototype.processLoadedImages=function(a){try{if(a.error)this.throwImagesLoadErrorWithMessage(a.error);else{this.$media_images.empty();for(var b=0;b<a.length;b++)a[b].src?this.loadImage(a[b].src,a[b].info):this.loadImage(a[b])}}catch(c){this.throwLoadImagesError(4)}},a.Editable.prototype.throwImagesLoadErrorWithMessage=function(a){this.triggerEvent("imagesLoadError",[{message:a,code:0}],!1),this.hideImageLoader()},a.Editable.prototype.loadImages=function(){this.$preloader.show(),this.$media_images.empty(),this.options.imagesLoadURL?(a.support.cors=!0,a.getJSON(this.options.imagesLoadURL,this.options.imagesLoadParams,a.proxy(function(a){this.triggerEvent("imagesLoaded",[a],!1),this.processLoadedImages(a),this.$preloader.hide()},this)).fail(a.proxy(function(){this.throwLoadImagesError(2)},this))):this.throwLoadImagesError(3)},a.Editable.prototype.throwLoadImagesError=function(a){void 0===a&&(a=-1);var b="Unknown image upload error.";1==a?b="Bad link.":2==a?b="Error during request.":3==a?b="Missing imagesLoadURL option.":4==a&&(b="Parsing response failed."),this.triggerEvent("imagesLoadError",[{code:a,message:b}],!1),this.$preloader.hide()},a.Editable.prototype.loadImage=function(b,c){var d=new Image,e=a("<div>").addClass("f-empty");d.onload=a.proxy(function(){var d="Delete";a.Editable.LANGS[this.options.language]&&(d=a.Editable.LANGS[this.options.language].translation[d]);var f=a('<img src="'+b+'"/>');for(var g in c)f.attr("data-"+g,c[g]);e.append(f).append('<a class="f-delete-img"><span data-text="true">'+d+"</span></a>"),e.removeClass("f-empty"),this.$media_images.hide(),this.$media_images.show(),this.triggerEvent("imageLoaded",[b],!1)},this),d.onerror=a.proxy(function(){e.remove(),this.throwLoadImagesError(1)},this),d.src=b,this.$media_images.append(e)}}(jQuery);
@@ -1,6 +0,0 @@
1
- /*!
2
- * froala_editor v1.2.8 (https://www.froala.com/wysiwyg-editor)
3
- * License https://www.froala.com/wysiwyg-editor/terms
4
- * Copyright 2014-2015 Froala Labs
5
- */
6
- !function(a){a.Editable.commands=a.extend(a.Editable.commands,{table:{title:"Table",icon:"fa fa-table",callback:function(a,b,c){this.table_commands[b]?this.table_commands[b].apply(this,[b,c]):this.table_commands.insertTable.apply(this,[b,c]),this.cleanupTables()}}}),a.Editable.DEFAULTS.buttons[a.Editable.DEFAULTS.buttons.indexOf("insertHorizontalRule")]="table",a.Editable.prototype.table_commands={insertTable:function(a,b){this.insertTable(a,b)},insertRowAbove:function(){this.insertRow("above")},insertRowBelow:function(){this.insertRow("below")},insertColumnBefore:function(){this.insertColumn("before")},insertColumnAfter:function(){this.insertColumn("after")},deleteColumn:function(){this.deleteColumn()},deleteRow:function(){this.deleteRow()},insertCellBefore:function(){this.insertCell("before")},insertCellAfter:function(){this.insertCell("after")},mergeCells:function(){this.mergeCells()},deleteCell:function(){this.deleteCell()},splitVertical:function(){this.splitVertical()},splitHorizontal:function(){this.splitHorizontal()},insertHeader:function(){this.insertHeader()},deleteHeader:function(){this.deleteHeader()},deleteTable:function(){this.deleteTable()}},a.Editable.prototype.command_dispatcher=a.extend(a.Editable.prototype.command_dispatcher,{table:function(a){var b=this.buildDropdownTable(),c=this.buildDropdownButton(a,b,"fr-table");return this.bindTableDropdownEvents(),c}}),a.Editable.prototype.tableTab=function(){var b;this.currentCell&&(b=this.currentCell());var c=a(this.getSelectionElement());return c.parents("ul, ol").length>0?!0:b&&this.nextCell()?(this.setSelection(this.nextCell()),!1):void 0},a.Editable.prototype.tableShiftTab=function(){var b;this.currentCell&&(b=this.currentCell());var c=a(this.getSelectionElement());return c.parents("ul, ol").length>0?!0:b&&this.prevCell()?(this.setSelection(this.prevCell()),!1):void 0},a.Editable.prototype.initTable=function(){var b=this;this.$editor.on("click mouseup touch touchend",".fr-table a",function(c){c.preventDefault(),c.stopPropagation(),b.android()&&(a(this).parent().siblings().removeClass("hover"),a(this).parent().addClass("hover"))}),this.addListener("tab",this.tableTab),this.addListener("shift+tab",this.tableShiftTab)},a.Editable.initializers.push(a.Editable.prototype.initTable),a.Editable.prototype.buildDropdownTable=function(){var a='<ul class="fr-dropdown-menu fr-table">';a+='<li> <a href="#"><span data-text="true">Insert table</span> <i class="fa fa-chevron-right"></i></a><div class="select-table"> ',a+='<div class="fr-t-info">1 x 1</div>';for(var b=1;10>=b;b++){for(var c=1;10>=c;c++){var d="inline-block";(b>5||c>5)&&(d="none");var e="fr-bttn ";1==b&&1==c&&(e+=" hover"),a+='<span class="'+e+'" data-cmd="table" data-val="'+b+'" data-param="'+c+'" style="display: '+d+';"><span></span></span>'}a+='<div class="new-line"></div>'}return a+="</div> </li>",a+='<li><a href="#"><span data-text="true">Cell</span> <i class="fa fa-chevron-right"></i></a> <ul> <li data-cmd="table" data-val="insertCellBefore"><a href="#" data-text="true">Insert cell before</a></li><li data-cmd="table" data-val="insertCellAfter"><a href="#" data-text="true">Insert cell after</a></li><li data-cmd="table" data-val="deleteCell"><a href="#" data-text="true">Delete cell</a></li><li data-cmd="table" data-val="mergeCells"><a href="#" data-text="true">Merge cells</a></li><li data-cmd="table" data-val="splitHorizontal"><a href="#" data-text="true">Horizontal split</a></li><li data-cmd="table" data-val="splitVertical"><a href="#" data-text="true">Vertical split</a></li></ul></li>',a+='<li><a href="#"><span data-text="true">Row</span> <i class="fa fa-chevron-right"></i></a> <ul><li data-cmd="table" data-val="insertRowAbove"><a href="#" data-text="true">Insert row above</a></li><li data-cmd="table" data-val="insertRowBelow"><a href="#" data-text="true">Insert row below</a></li><li data-cmd="table" data-val="deleteRow"><a href="#" data-text="true">Delete row</a></li></ul></li>',a+='<li><a href="#"><span data-text="true">Column</span> <i class="fa fa-chevron-right"></i></a> <ul> <li data-cmd="table" data-val="insertColumnBefore"><a href="#" data-text="true">Insert column before</a></li> <li data-cmd="table" data-val="insertColumnAfter"><a href="#" data-text="true">Insert column after</a></li> <li data-cmd="table" data-val="deleteColumn"><a href="#" data-text="true">Delete column</a></li> </ul></li>',a+='<li data-cmd="table" data-val="deleteTable"><a href="#" data-text="true">Delete table</a></li>',a+="</ul>"},a.Editable.prototype.bindTableDropdownEvents=function(){var b=this;this.$bttn_wrapper.on("mouseenter",".fr-table .select-table > span",function(){var c=a(this).data("val"),d=a(this).data("param");b.$bttn_wrapper.find(".fr-table .select-table .fr-t-info").text(c+" x "+d),b.$bttn_wrapper.find(".fr-table .select-table > span").removeClass("hover");for(var e=1;10>=e;e++)for(var f=0;10>=f;f++){var g=b.$bttn_wrapper.find('.fr-table .select-table > span[data-val="'+e+'"][data-param="'+f+'"]');c>=e&&d>=f?g.addClass("hover"):(c+1>=e||5>=e)&&(d+1>=f||5>=f)?g.css("display","inline-block"):(e>5||f>5)&&g.css("display","none")}}),this.$bttn_wrapper.on("mouseleave",".fr-table .select-table",function(){b.$bttn_wrapper.find('.fr-table .select-table > span[data-val="1"][data-param="1"]').trigger("mouseenter")}),this.android()&&this.$bttn_wrapper.on("touchend",".fr-table .fr-trigger",function(){a(this).parents(".fr-table").find(".hover").removeClass("hover")})},a.Editable.prototype.tableMap=function(){var b=this.currentTable(),c=[];return b&&b.find("tr:not(:empty)").each(function(b,d){var e=a(d),f=0;e.find("th, td").each(function(d,e){for(var g=a(e),h=parseInt(g.attr("colspan"),10)||1,i=parseInt(g.attr("rowspan"),10)||1,j=b;b+i>j;j++)for(var k=f;f+h>k;k++)c[j]||(c[j]=[]),c[j][k]?f++:c[j][k]=e;f+=h})}),c},a.Editable.prototype.cellOrigin=function(a,b){for(var c=0;c<b.length;c++)for(var d=0;d<b[c].length;d++)if(b[c][d]==a)return{row:c,col:d}},a.Editable.prototype.canMergeCells=function(){var b=this.getSelectionCells();if(b.length<2)return!1;for(var c=this.tableMap(),d=0,e=32e3,f=0,g=32e3,h=0,i=0;i<b.length;i++){var j=a(b[i]),k=parseInt(j.attr("colspan"),10)||1,l=parseInt(j.attr("rowspan"),10)||1,m=this.cellOrigin(b[i],c);d+=k*l,e=Math.min(e,m.col),f=Math.max(f,m.col+k),g=Math.min(g,m.row),h=Math.max(h,m.row+l)}return d==(f-e)*(h-g)?{row:g,col:e,colspan:f-e,rowspan:h-g,map:c,cells:b}:null},a.Editable.prototype.getSelectionCells=function(){var b,c=[];if(this.browser.webkit||this.browser.msie){var d=this.getSelectionElements();for(b=0;b<d.length;b++)("TD"==d[b].tagName||"TH"==d[b].tagName)&&c.push(d[b])}else{var e=this.getRanges();for(b=0;b<e.length;b++){var f=e[b],g=!1;if("TD"==f.startContainer.tagName||"TH"==f.startContainer.tagName)c.push(f.startContainer),g=!0;else{var h=f.startContainer.childNodes,i=f.startOffset;if(h.length>i&&i>=0){var j=h[i];("TD"==j.tagName||"TH"==j.tagName)&&(c.push(j),g=!0)}}if(g===!1){var k=a(f.startContainer).parents("td:first, th:first");k.length>0&&c.push(k.get(0))}}}return c},a.Editable.prototype.currentCell=function(){var a=this.getSelectionCells();return a.length>0?a[0]:null},a.Editable.prototype.prevCell=function(){var b=this.currentCell();if(b){if(a(b).prev("td").length)return a(b).prev("td").get(0);if(a(b).parent().prev("tr").find("td").length)return a(b).parent().prev("tr").find("td:last").get(0)}return null},a.Editable.prototype.nextCell=function(){var b=this.currentCell();if(b){if(a(b).next("td").length)return a(b).next("td").get(0);if(a(b).parent().next("tr").find("td").length)return a(b).parent().next("tr").find("td").get(0)}return null},a.Editable.prototype.currentTable=function(){for(var b=a(this.getSelectionElement());b.get(0)!=this.$element.get(0)&&b.get(0)!=this.$document.find("body").get(0)&&"TABLE"!=b.get(0).tagName;)b=b.parent();return b.get(0)!=this.$element.get(0)?b:null},a.Editable.prototype.focusOnTable=function(){var a=this.currentTable();if(a){var b=a.find("td:first");this.setSelection(b.get(0))}},a.Editable.prototype.insertCell=function(b){for(var c=this.getSelectionCells(),d=0;d<c.length;d++){var e=a(c[d]);"before"==b?e.before(e.clone().removeAttr("colspan").removeAttr("rowspan").html(a.Editable.INVISIBLE_SPACE)):"after"==b&&e.after(e.clone().removeAttr("colspan").removeAttr("rowspan").html(a.Editable.INVISIBLE_SPACE))}"before"==b?this.triggerEvent("cellInsertedBefore"):"after"==b&&this.triggerEvent("cellInsertedAfter")},a.Editable.prototype.mergeCells=function(){var b=this.canMergeCells();if(b){var c=a(b.map[b.row][b.col]);c.attr("colspan",b.colspan),c.attr("rowspan",b.rowspan);for(var d=0;d<b.cells.length;d++){var e=b.cells[d];if(c.get(0)!=e){var f=a(e);c.append(f.html()),f.remove()}}this.setSelection(c.get(0))}this.hide(),this.triggerEvent("cellsMerged")},a.Editable.prototype.deleteCell=function(){for(var b=this.getSelectionCells(),c=0;c<b.length;c++){var d=a(b[c]);d.remove()}this.focusOnTable(),this.hide(),this.triggerEvent("cellDeleted")},a.Editable.prototype.insertHeader=function(){var a=this.currentTable();a&&a.find(" > thead").length>0&&this.triggerEvent("headerInserted")},a.Editable.prototype.deleteHeader=function(){},a.Editable.prototype.insertColumn=function(b){var c=this.currentCell();if(c)for(var d=a(c),e=this.tableMap(),f=this.cellOrigin(d.get(0),e),g=0;g<e.length;g++){var h=e[g][f.col],i=parseInt(a(h).attr("colspan"),10)||1,j=parseInt(a(h).attr("rowspan"),10)||1;if("before"==b){var k=e[g][f.col-1];k?k==h?a(k).attr("colspan",i+1):j>1?a(k).after("<"+k.tagName+">"+a.Editable.INVISIBLE_SPACE+"</"+k.tagName+">"):a(h).before("<"+h.tagName+">"+a.Editable.INVISIBLE_SPACE+"</"+h.tagName+">"):a(h).before("<"+h.tagName+">"+a.Editable.INVISIBLE_SPACE+"</"+h.tagName+">")}else if("after"==b){var l=e[g][f.col+1];l?l==h?a(l).attr("colspan",i+1):j>1?a(l).before("<"+l.tagName+">"+a.Editable.INVISIBLE_SPACE+"</"+l.tagName+">"):a(h).after("<"+h.tagName+">"+a.Editable.INVISIBLE_SPACE+"</"+h.tagName+">"):a(h).after("<"+h.tagName+">"+a.Editable.INVISIBLE_SPACE+"</"+h.tagName+">")}}this.hide(),"before"==b?this.triggerEvent("columnInsertedBefore"):"after"==b&&this.triggerEvent("columnInsertedAfter")},a.Editable.prototype.deleteColumn=function(){for(var b=this.getSelectionCells(),c=0;c<b.length;c++)for(var d=a(b[c]),e=this.tableMap(),f=this.cellOrigin(d.get(0),e),g=0;g<e.length;g++){var h=e[g][f.col],i=parseInt(a(h).attr("colspan"),10)||1;1==i?a(h).remove():a(h).attr("colspan",i-1)}this.focusOnTable(),this.hide(),this.triggerEvent("columnDeleted")},a.Editable.prototype.insertRow=function(b){var c,d=this.currentCell();if(d){var e=a(d),f=this.tableMap(),g=this.cellOrigin(e.get(0),f),h=0,i=null;for(c=0;c<f[g.row].length;c++){var j=f[g.row][c],k=parseInt(a(j).attr("rowspan"),10)||1;if("above"==b)if(0===g.row)h++;else{var l=f[g.row-1][c];l==j&&i!=j?a(j).attr("rowspan",k+1):h++}else if("below"==b)if(g.row==f.length-1)h++;else{var m=f[g.row+1][c];m==j&&i!=j?a(j).attr("rowspan",k+1):h++}i=f[g.row][c]}var n="<tr>";for(c=0;h>c;c++)n+="<td>"+a.Editable.INVISIBLE_SPACE+"</td>";n+="</tr>","below"==b?e.closest("tr").after(n):"above"==b&&e.closest("tr").before(n)}this.hide(),"below"==b?this.triggerEvent("rowInsertedBelow"):"above"==b&&this.triggerEvent("rowInsertedAbove")},a.Editable.prototype.deleteRow=function(){for(var b=this.getSelectionCells(),c=0;c<b.length;c++){var d=a(b[c]),e=this.tableMap(),f=this.cellOrigin(d.get(0),e),g=d.parents("tr:first");if(f)for(var h=0;h<e[f.row].length;h++){var i=e[f.row][h],j=parseInt(a(i).attr("rowspan"),10)||1;if(1==j)a(i).remove();else{var k=this.cellOrigin(i,e);if(a(i).attr("rowspan",j-1),k.row==f.row){var l=e[f.row+1];l&&l[h-1]&&(a(l[h-1]).after(a(i).clone()),a(i).remove())}}}g.remove()}this.focusOnTable(),this.hide(),this.triggerEvent("rowDeleted")},a.Editable.prototype.splitVertical=function(){for(var b=this.getSelectionCells(),c=0;c<b.length;c++){var d=a(b[c]),e=this.tableMap(),f=this.cellOrigin(d.get(0),e),g=parseInt(d.attr("colspan"),10)||1,h=parseInt(d.attr("rowspan"),10)||1;if(h>1){var i=Math.floor(h/2),j=f.row+(h-i),k=e[j][f.col-1];k||(k=e[j][f.col+g]),k?a(k).before(d.clone().attr("rowspan",i).html(a.Editable.INVISIBLE_SPACE)):d.parents("tr:first").after(a("<tr>").append(d.clone().attr("rowspan",i).html(a.Editable.INVISIBLE_SPACE))),d.attr("rowspan",h-i)}else{for(var l=a("<tr>").append(d.clone().html(a.Editable.INVISIBLE_SPACE)),m=null,n=0;n<e[f.row].length;n++){var o=e[f.row][n],p=parseInt(a(o).attr("rowspan"),10)||1;m!=o&&o!=d.get(0)&&a(o).attr("rowspan",p+1),m=o}d.parents("tr:first").after(l)}}this.hide(),this.triggerEvent("cellVerticalSplit")},a.Editable.prototype.splitHorizontal=function(){for(var b=this.getSelectionCells(),c=0;c<b.length;c++){var d=a(b[c]),e=this.tableMap(),f=this.cellOrigin(d.get(0),e),g=parseInt(d.attr("colspan"),10)||1;if(g>1){var h=Math.floor(g/2);d.after(d.clone().attr("colspan",h).html(a.Editable.INVISIBLE_SPACE)),d.attr("colspan",g-h)}else{for(var i=null,j=0;j<e.length;j++){var k=e[j][f.col],l=parseInt(a(k).attr("colspan"),10)||1;i!=k&&k!=d.get(0)&&a(k).attr("colspan",l+1),i=k}d.after(d.clone().html(a.Editable.INVISIBLE_SPACE))}}this.hide(),this.triggerEvent("cellHorizontalSplit")},a.Editable.prototype.insertTable=function(b,c){for(var d='<table data-last-table="true" width="100%">',e=0;b>e;e++){d+="<tr>";for(var f=0;c>f;f++)d+="<td>"+a.Editable.INVISIBLE_SPACE+"</td>";d+="</tr>"}d+="</table>",this.focus();var g=this.getSelectionElement();this.breakHTML(d,this.parents(a(g),"li").length<0);var h=this.$element.find('table[data-last-table="true"]');h.removeAttr("data-last-table"),this.setSelection(h.find("td:first").get(0)),this.hide(),this.triggerEvent("tableInserted")},a.Editable.prototype.deleteTable=function(){var a=this.currentTable();a&&(a.remove(),this.focus(),this.hide(),this.triggerEvent("tableDeleted"))},a.Editable.prototype.cleanupTables=function(){this.$element.find('td[colspan="1"], th[colspan="1"]').each(function(){a(this).removeAttr("colspan")}),this.$element.find('td[rowspan="1"], th[rowspan="1"]').each(function(){a(this).removeAttr("rowspan")})}}(jQuery);
@@ -1,6 +0,0 @@
1
- /*!
2
- * froala_editor v1.2.8 (https://www.froala.com/wysiwyg-editor)
3
- * License https://www.froala.com/wysiwyg-editor/terms
4
- * Copyright 2014-2015 Froala Labs
5
- */
6
- !function(a){a.Editable.URLRegEx=/(\s|^|>)((http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+(\.[a-zA-Z]{2,3})?(:\d*)?(\/[^\s<]*)?)(\s|$|<)/gi,a.Editable.prototype.convertURLs=function(b){var c=this;b.each(function(){if("IFRAME"!=this.tagName)if(3==this.nodeType){var b=this.textContent.replace(/&nbsp;/gi,"");a.Editable.URLRegEx.test(b)&&(a(this).before(b.replace(a.Editable.URLRegEx,'$1<a href="$2">$2</a>$7')),a(this).remove())}else 1==this.nodeType&&["A","BUTTON","TEXTAREA"].indexOf(this.tagName)<0&&c.convertURLs(a(this).contents())})},a.Editable.prototype.processURLs=function(){this.$original_element.on("editable.afterPasteCleanup",function(b,c,d){return a.Editable.URLRegEx.test(d)?d.replace(a.Editable.URLRegEx,'$1<a href="$2">$2</a>$7'):void 0}),this.$original_element.on("editable.keyup",function(a,b,c){var d=c.which;(32==d||13==d)&&b.convertURLs(b.$element.contents())}),this.$original_element.on("editable.keydown",function(b,c,d){var e=d.which;if(32==e){var f=c.getSelectionElement();if(("A"==f.tagName||a(f).parents("a").length)&&c.getSelectionTextInfo(f).atEnd)return b.stopImmediatePropagation(),"A"!==f.tagName&&(f=a(f).parents("a")[0]),a(f).after('&nbsp;<span class="f-marker" data-type="false" data-id="0" data-fr-verified="true"></span><span class="f-marker" data-type="true" data-id="0" data-fr-verified="true"></span>'),c.restoreSelectionByMarkers(),!1}})},a.Editable.initializers.push(a.Editable.prototype.processURLs)}(jQuery);
@@ -1,5 +0,0 @@
1
- /*!
2
- * froala_editor v1.2.8 (https://www.froala.com/wysiwyg-editor)
3
- * License https://www.froala.com/wysiwyg-editor/terms
4
- * Copyright 2014-2015 Froala Labs
5
- */img.fr-fil{z-index:1;position:relative;margin:auto;overflow:auto;padding:10px 10px 10px 3px;float:left!important}img.fr-fil.fr-dib{float:none!important;margin-left:0!important}img.fr-fir{z-index:1;position:relative;margin:auto;overflow:auto;padding:10px 3px 10px 10px;float:right!important}img.fr-fir.fr-dib{float:none!important;margin-right:0!important}img.fr-fin{z-index:1;position:relative;margin:auto;overflow:auto;float:none}img.fr-fin.fr-dib{padding:10px 0}img.fr-dib{vertical-align:top;display:block}a.fr-file{position:relative}a.fr-file:before{position:relative;display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f0c6";top:0;padding-right:3px}.froala-view table,table.fr-tag{border-collapse:collapse;empty-cells:show;width:100%;margin-bottom:10px;margin-top:10px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.froala-view table td,table.fr-tag td{border:solid 1px #ccc;padding:5px;vertical-align:top}.froala-view table th,table.fr-tag th{background:#e6e6e6;border:solid 1px #ccc;padding:5px;vertical-align:top}.froala-view pre,pre.fr-tag{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;border:solid 1px #ccc;background:#fcfcfc;padding:10px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;font-family:"Courier New",Courier,monospace}.froala-view blockquote,blockquote.fr-tag{margin-left:20px;margin-right:0;margin-top:0;padding-left:20px;position:relative;font-style:italic;border-left:solid 5px #ccc}.froala-view hr,hr.fr-tag{height:0;border:0;border-top:solid 1px #ccc;clear:both}.fr-fvn{float:none;display:block!important;text-align:center!important}.fr-fvl{float:left;margin:10px 10px 10px 1px}.fr-fvr{float:right;margin:10px 1px 10px 10px}.fr-tnv{float:none!important;margin:auto;text-align:center;display:block!important}.fr-tnv.fr-fvl{text-align:left}.fr-tnv.fr-fvr{text-align:right}