activeadmin_trumbowyg 0.2.6 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -3
- data/Rakefile +13 -0
- data/app/assets/fonts/trumbowyg/icons.svg +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/langs/bn.js +62 -0
- data/app/assets/javascripts/activeadmin/trumbowyg/langs/bn.min.js +9 -0
- data/app/assets/javascripts/activeadmin/trumbowyg/langs/et.js +65 -0
- data/app/assets/javascripts/activeadmin/trumbowyg/langs/et.min.js +9 -0
- data/app/assets/javascripts/activeadmin/trumbowyg/langs/ko.js +4 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/langs/ko.min.js +3 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/langs/sl.js +9 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/langs/sl.min.js +7 -0
- data/app/assets/javascripts/activeadmin/trumbowyg/langs/tr.js +7 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/langs/tr.min.js +4 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/allowtagsfrompaste/trumbowyg.allowtagsfrompaste.js +3 -3
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/allowtagsfrompaste/trumbowyg.allowtagsfrompaste.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/base64/trumbowyg.base64.js +36 -24
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/base64/trumbowyg.base64.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.js +41 -5
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/trumbowyg.colors.js +44 -30
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/trumbowyg.colors.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/ui/sass/trumbowyg.colors.scss +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/ui/trumbowyg.colors.css +3 -2
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/ui/trumbowyg.colors.min.css +2 -2
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/trumbowyg.emoji.js +159 -92
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/trumbowyg.emoji.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/ui/sass/trumbowyg.emoji.scss +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.css +3 -2
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.min.css +2 -2
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.js +15 -9
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/fontsize/trumbowyg.fontsize.js +119 -75
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/fontsize/trumbowyg.fontsize.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/trumbowyg.giphy.js +10 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/trumbowyg.giphy.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/ui/sass/trumbowyg.giphy.scss +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/ui/trumbowyg.giphy.css +13 -6
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/ui/trumbowyg.giphy.min.css +2 -2
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/highlight/trumbowyg.highlight.js +237 -20
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/highlight/trumbowyg.highlight.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/highlight/ui/sass/trumbowyg.highlight.scss +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/highlight/ui/trumbowyg.highlight.css +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/highlight/ui/trumbowyg.highlight.min.css +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/history/trumbowyg.history.js +27 -15
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/history/trumbowyg.history.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/indent/trumbowyg.indent.js +60 -0
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/indent/trumbowyg.indent.min.js +1 -0
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/insertaudio/trumbowyg.insertaudio.js +12 -6
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/insertaudio/trumbowyg.insertaudio.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/lineheight/trumbowyg.lineheight.js +45 -27
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/lineheight/trumbowyg.lineheight.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mathml/trumbowyg.mathml.js +20 -10
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mathml/trumbowyg.mathml.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mathml/ui/sass/trumbowyg.mathml.scss +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mathml/ui/trumbowyg.mathml.css +3 -2
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mathml/ui/trumbowyg.mathml.min.css +2 -2
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/trumbowyg.mention.js +12 -6
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/trumbowyg.mention.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/ui/sass/trumbowyg.mention.scss +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/ui/trumbowyg.mention.css +6 -2
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/ui/trumbowyg.mention.min.css +2 -2
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/noembed/trumbowyg.noembed.js +22 -14
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/noembed/trumbowyg.noembed.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/pasteembed/trumbowyg.pasteembed.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/pasteimage/trumbowyg.pasteimage.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/preformatted/trumbowyg.preformatted.js +17 -11
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/preformatted/trumbowyg.preformatted.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/resizimg/trumbowyg.resizimg.js +47 -39
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/resizimg/trumbowyg.resizimg.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/ruby/trumbowyg.ruby.js +10 -0
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/ruby/trumbowyg.ruby.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/trumbowyg.specialchars.js +6 -0
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/trumbowyg.specialchars.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/ui/sass/trumbowyg.specialchars.scss +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/ui/trumbowyg.specialchars.css +3 -2
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/ui/trumbowyg.specialchars.min.css +2 -2
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/trumbowyg.table.js +93 -58
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/trumbowyg.table.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/ui/sass/trumbowyg.table.scss +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/ui/trumbowyg.table.css +5 -3
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/ui/trumbowyg.table.min.css +2 -2
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/template/trumbowyg.template.js +6 -0
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/template/trumbowyg.template.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/upload/trumbowyg.upload.js +51 -29
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/upload/trumbowyg.upload.min.js +1 -1
- data/app/assets/javascripts/activeadmin/trumbowyg/trumbowyg.js +165 -80
- data/app/assets/javascripts/activeadmin/trumbowyg/trumbowyg.min.js +12 -2
- data/app/assets/javascripts/activeadmin/trumbowyg_input.js +5 -7
- data/app/assets/stylesheets/activeadmin/_trumbowyg_input.scss +5 -7
- data/app/assets/stylesheets/activeadmin/trumbowyg/trumbowyg.scss +69 -57
- data/lib/activeadmin/trumbowyg/version.rb +1 -1
- metadata +13 -121
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/resizimg/resizable-resolveconflict.js +0 -20
- data/app/assets/javascripts/activeadmin/trumbowyg/plugins/resizimg/resizable-resolveconflict.min.js +0 -1
data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/ui/trumbowyg.mention.min.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
/** Trumbowyg v2.
|
2
|
-
.trumbowyg-dropdown-mention button{position:relative;white-space:nowrap}.trumbowyg-dropdown-mention button:after{content:"";position:absolute;top:0;right:0;width:15%;height:100%;background-size:100%;background-image:linear-gradient(to right,rgba(255,255,255,0) 0,#fff 80%,#fff 100%);pointer-events:none}
|
1
|
+
/** Trumbowyg v2.25.0 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */
|
2
|
+
.trumbowyg-dropdown-mention button{position:relative;white-space:nowrap}.trumbowyg-dropdown-mention button:after{content:"";position:absolute;top:0;right:0;width:15%;height:100%;-webkit-background-size:100% 100%;background-size:100%;background-image:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,0)),color-stop(80%,#fff),to(#fff));background-image:-webkit-linear-gradient(left,rgba(255,255,255,0) 0,#fff 80%,#fff 100%);background-image:-o-linear-gradient(left,rgba(255,255,255,0) 0,#fff 80%,#fff 100%);background-image:linear-gradient(to right,rgba(255,255,255,0) 0,#fff 80%,#fff 100%);pointer-events:none}
|
@@ -24,23 +24,39 @@
|
|
24
24
|
noembed: 'Noembed',
|
25
25
|
noembedError: 'Error'
|
26
26
|
},
|
27
|
+
cs: {
|
28
|
+
noembedError: 'Chyba'
|
29
|
+
},
|
27
30
|
da: {
|
28
31
|
noembedError: 'Fejl'
|
29
32
|
},
|
30
|
-
|
31
|
-
|
33
|
+
et: {
|
34
|
+
noembed: 'Noembed',
|
35
|
+
noembedError: 'Viga'
|
32
36
|
},
|
33
37
|
fr: {
|
34
38
|
noembedError: 'Erreur'
|
35
39
|
},
|
36
|
-
|
37
|
-
|
40
|
+
hu: {
|
41
|
+
noembed: 'Noembed',
|
42
|
+
noembedError: 'Hiba'
|
43
|
+
},
|
44
|
+
ja: {
|
45
|
+
noembedError: 'エラー'
|
46
|
+
},
|
47
|
+
ko: {
|
48
|
+
noembed: 'oEmbed 넣기',
|
49
|
+
noembedError: '에러'
|
50
|
+
},
|
51
|
+
pt_br: {
|
52
|
+
noembed: 'Incorporar',
|
53
|
+
noembedError: 'Erro'
|
38
54
|
},
|
39
55
|
ru: {
|
40
56
|
noembedError: 'Ошибка'
|
41
57
|
},
|
42
|
-
|
43
|
-
noembedError: '
|
58
|
+
sk: {
|
59
|
+
noembedError: 'Chyba'
|
44
60
|
},
|
45
61
|
tr: {
|
46
62
|
noembedError: 'Hata'
|
@@ -49,14 +65,6 @@
|
|
49
65
|
noembed: '插入影片',
|
50
66
|
noembedError: '錯誤'
|
51
67
|
},
|
52
|
-
pt_br: {
|
53
|
-
noembed: 'Incorporar',
|
54
|
-
noembedError: 'Erro'
|
55
|
-
},
|
56
|
-
ko: {
|
57
|
-
noembed: 'oEmbed 넣기',
|
58
|
-
noembedError: '에러'
|
59
|
-
},
|
60
68
|
// jshint camelcase:true
|
61
69
|
},
|
62
70
|
|
@@ -1 +1 @@
|
|
1
|
-
!function(e){"use strict";var r={proxy:"https://noembed.com/embed?nowrap=on",urlFiled:"url",data:[],success:void 0,error:void 0};e.extend(!0,e.trumbowyg,{langs:{en:{noembed:"Noembed",noembedError:"Error"},da:{noembedError:"Fejl"},
|
1
|
+
!function(e){"use strict";var r={proxy:"https://noembed.com/embed?nowrap=on",urlFiled:"url",data:[],success:void 0,error:void 0};e.extend(!0,e.trumbowyg,{langs:{en:{noembed:"Noembed",noembedError:"Error"},cs:{noembedError:"Chyba"},da:{noembedError:"Fejl"},et:{noembed:"Noembed",noembedError:"Viga"},fr:{noembedError:"Erreur"},hu:{noembed:"Noembed",noembedError:"Hiba"},ja:{noembedError:"エラー"},ko:{noembed:"oEmbed 넣기",noembedError:"에러"},pt_br:{noembed:"Incorporar",noembedError:"Erro"},ru:{noembedError:"Ошибка"},sk:{noembedError:"Chyba"},tr:{noembedError:"Hata"},zh_tw:{noembed:"插入影片",noembedError:"錯誤"}},plugins:{noembed:{init:function(o){o.o.plugins.noembed=e.extend(!0,{},r,o.o.plugins.noembed||{});var n={fn:function(){var r=o.openModalInsert(o.lang.noembed,{url:{label:"URL",required:!0}},(function(n){e.ajax({url:o.o.plugins.noembed.proxy,type:"GET",data:n,cache:!1,dataType:"json",success:o.o.plugins.noembed.success||function(n){n.html?(o.execCmd("insertHTML",n.html),setTimeout((function(){o.closeModal()}),250)):o.addErrorOnModalField(e("input[type=text]",r),n.error)},error:o.o.plugins.noembed.error||function(){o.addErrorOnModalField(e("input[type=text]",r),o.lang.noembedError)}})}))}};o.addBtnDef("noembed",n)}}}})}(jQuery);
|
data/app/assets/javascripts/activeadmin/trumbowyg/plugins/pasteembed/trumbowyg.pasteembed.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(t){"use strict";var e={enabled:!0,endpoints:["https://noembed.com/embed?nowrap=on","https://api.maxmade.nl/url2iframe/embed"]};t.extend(!0,t.trumbowyg,{plugins:{pasteEmbed:{init:function(n){n.o.plugins.pasteEmbed=t.extend(!0,{},e,n.o.plugins.pasteEmbed||{}),n.o.plugins.pasteEmbed.enabled&&n.pasteHandlers.push(function(e){try{var a=(e.originalEvent||e).clipboardData
|
1
|
+
!function(t){"use strict";var e={enabled:!0,endpoints:["https://noembed.com/embed?nowrap=on","https://api.maxmade.nl/url2iframe/embed"]};t.extend(!0,t.trumbowyg,{plugins:{pasteEmbed:{init:function(n){n.o.plugins.pasteEmbed=t.extend(!0,{},e,n.o.plugins.pasteEmbed||{}),n.o.plugins.pasteEmbed.enabled&&n.pasteHandlers.push((function(e){try{var a=(e.originalEvent||e).clipboardData.getData("Text"),r=n.o.plugins.pasteEmbed.endpoints,s=null;if(a.startsWith("http")){e.stopPropagation(),e.preventDefault();var i={url:a.trim()},o="",p=0;s&&s.transport&&s.transport.abort(),s=t.ajax({crossOrigin:!0,url:r[p],type:"GET",data:i,cache:!1,dataType:"jsonp",success:function(t){t.html?(p=0,o=t.html):p+=1},error:function(){p+=1},complete:function(){0===o.length&&p<r.length-1&&(this.url=r[p],this.data=i,t.ajax(this)),p===r.length-1&&(o=t("<a>",{href:a,text:a}).prop("outerHTML")),o.length>0&&(p=0,n.execCmd("insertHTML",o))}})}}catch(t){}}))}}}})}(jQuery);
|
data/app/assets/javascripts/activeadmin/trumbowyg/plugins/pasteimage/trumbowyg.pasteimage.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e){"use strict";e.extend(!0,e.trumbowyg,{plugins:{pasteImage:{init:function(e){e.pasteHandlers.push(function(t){try{for(var a,n=(t.originalEvent||t).clipboardData.items,i=!1,r=n.length-1;r>=0;r-=1)n[r].type.match(/^image\//)&&(a=new FileReader
|
1
|
+
!function(e){"use strict";e.extend(!0,e.trumbowyg,{plugins:{pasteImage:{init:function(e){e.pasteHandlers.push((function(t){try{for(var a,n=(t.originalEvent||t).clipboardData.items,i=!1,r=n.length-1;r>=0;r-=1)n[r].type.match(/^image\//)&&((a=new FileReader).onloadend=function(t){e.execCmd("insertImage",t.target.result,!1,!0)},a.readAsDataURL(n[r].getAsFile()),i=!0);i&&(t.stopPropagation(),t.preventDefault())}catch(e){}}))}}}})}(jQuery);
|
data/app/assets/javascripts/activeadmin/trumbowyg/plugins/preformatted/trumbowyg.preformatted.js
CHANGED
@@ -19,33 +19,39 @@
|
|
19
19
|
da: {
|
20
20
|
preformatted: 'Præformateret <pre>'
|
21
21
|
},
|
22
|
+
et: {
|
23
|
+
preformatted: 'Eelvormindatud tekst <pre>'
|
24
|
+
},
|
22
25
|
fr: {
|
23
26
|
preformatted: 'Exemple de code <pre>'
|
24
27
|
},
|
28
|
+
hu: {
|
29
|
+
preformatted: 'Kód minta <pre>'
|
30
|
+
},
|
25
31
|
it: {
|
26
32
|
preformatted: 'Codice <pre>'
|
27
33
|
},
|
28
|
-
|
29
|
-
preformatted: '
|
34
|
+
ja: {
|
35
|
+
preformatted: 'コードサンプル <pre>'
|
36
|
+
},
|
37
|
+
ko: {
|
38
|
+
preformatted: '코드 예제 <pre>'
|
39
|
+
},
|
40
|
+
pt_br: {
|
41
|
+
preformatted: 'Exemple de código <pre>'
|
30
42
|
},
|
31
43
|
ru: {
|
32
44
|
preformatted: 'Пример кода <pre>'
|
33
45
|
},
|
34
|
-
ja: {
|
35
|
-
preformatted: 'コードサンプル <pre>'
|
36
|
-
},
|
37
46
|
tr: {
|
38
47
|
preformatted: 'Kod örneği <pre>'
|
39
48
|
},
|
49
|
+
zh_cn: {
|
50
|
+
preformatted: '代码示例 <pre>'
|
51
|
+
},
|
40
52
|
zh_tw: {
|
41
53
|
preformatted: '代碼範例 <pre>'
|
42
54
|
},
|
43
|
-
pt_br: {
|
44
|
-
preformatted: 'Exemple de código <pre>'
|
45
|
-
},
|
46
|
-
ko: {
|
47
|
-
preformatted: '코드 예제 <pre>'
|
48
|
-
},
|
49
55
|
},
|
50
56
|
// jshint camelcase:true
|
51
57
|
|
data/app/assets/javascripts/activeadmin/trumbowyg/plugins/preformatted/trumbowyg.preformatted.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e){"use strict";function t(){var e,t=null;
|
1
|
+
!function(e){"use strict";e.extend(!0,e.trumbowyg,{langs:{en:{preformatted:"Code sample <pre>"},da:{preformatted:"Præformateret <pre>"},et:{preformatted:"Eelvormindatud tekst <pre>"},fr:{preformatted:"Exemple de code <pre>"},hu:{preformatted:"Kód minta <pre>"},it:{preformatted:"Codice <pre>"},ja:{preformatted:"コードサンプル <pre>"},ko:{preformatted:"코드 예제 <pre>"},pt_br:{preformatted:"Exemple de código <pre>"},ru:{preformatted:"Пример кода <pre>"},tr:{preformatted:"Kod örneği <pre>"},zh_cn:{preformatted:"代码示例 <pre>"},zh_tw:{preformatted:"代碼範例 <pre>"}},plugins:{preformatted:{init:function(t){var r={fn:function(){t.saveRange();var r,n,o=t.getRangeText();if(""!==o.replace(/\s/g,""))try{var a=function(){var e,t=null;window.getSelection?(e=window.getSelection()).rangeCount&&1!==(t=e.getRangeAt(0).commonAncestorContainer).nodeType&&(t=t.parentNode):(e=document.selection)&&"Control"!==e.type&&(t=e.createRange().parentElement());return t}().tagName.toLowerCase();if("code"===a||"pre"===a)return function(){var t=null;if(document.selection)t=document.selection.createRange().parentElement();else{var r=window.getSelection();r.rangeCount>0&&(t=r.getRangeAt(0).startContainer.parentNode)}var n=e(t).contents().closest("pre").length,o=e(t).contents().closest("code").length;n&&o?e(t).contents().unwrap("code").unwrap("pre"):n?e(t).contents().unwrap("pre"):o&&e(t).contents().unwrap("code")}();t.execCmd("insertHTML","<pre><code>"+(r=o,(n=document.createElement("DIV")).innerHTML=r,(n.textContent||n.innerText||"")+"</code></pre>"))}catch(e){}},tag:"pre"};t.addBtnDef("preformatted",r)}}}})}(jQuery);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
;(function ($) {
|
1
|
+
; (function ($) {
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
var defaultOptions = {
|
@@ -11,7 +11,7 @@
|
|
11
11
|
e.preventDefault();
|
12
12
|
}
|
13
13
|
|
14
|
-
var ResizeWithCanvas = function () {
|
14
|
+
var ResizeWithCanvas = function (trumbowyg) {
|
15
15
|
// variable to create canvas and save img in resize mode
|
16
16
|
this.resizeCanvas = document.createElement('canvas');
|
17
17
|
// to allow canvas to get focus
|
@@ -24,8 +24,13 @@
|
|
24
24
|
obj.reset();
|
25
25
|
};
|
26
26
|
this.pressBackspaceOrDelete = function (obj) {
|
27
|
-
$(obj.resizeCanvas).
|
27
|
+
$(obj.resizeCanvas).remove();
|
28
28
|
obj.resizeImg = null;
|
29
|
+
if (trumbowyg !== null){
|
30
|
+
trumbowyg.syncCode();
|
31
|
+
// notify changes
|
32
|
+
trumbowyg.$c.trigger('tbwchange');
|
33
|
+
}
|
29
34
|
};
|
30
35
|
|
31
36
|
// PRIVATE FUNCTION
|
@@ -40,15 +45,6 @@
|
|
40
45
|
offsetY = BB.top;
|
41
46
|
};
|
42
47
|
|
43
|
-
var drawRect = function (shapeData, ctx) {
|
44
|
-
// Inner
|
45
|
-
ctx.beginPath();
|
46
|
-
ctx.fillStyle = 'rgb(255, 255, 255)';
|
47
|
-
ctx.rect(shapeData.points.x, shapeData.points.y, shapeData.points.width, shapeData.points.height);
|
48
|
-
ctx.fill();
|
49
|
-
ctx.stroke();
|
50
|
-
};
|
51
|
-
|
52
48
|
var updateCanvas = function (canvas, ctx, img, canvasWidth, canvasHeight) {
|
53
49
|
ctx.translate(0.5, 0.5);
|
54
50
|
ctx.lineWidth = 1;
|
@@ -109,10 +105,8 @@
|
|
109
105
|
return;
|
110
106
|
}
|
111
107
|
|
112
|
-
this
|
113
|
-
this.resizeImg.height
|
114
|
-
// clear style of image to avoid issue on resize because this attribute have priority over width and height attribute
|
115
|
-
this.resizeImg.removeAttribute('style');
|
108
|
+
// set style of image to avoid issue on resize because this attribute have priority over width and height attribute
|
109
|
+
this.resizeImg.setAttribute('style', 'width: 100%; max-width: ' + (this.resizeCanvas.clientWidth - 10) + 'px; height: auto; max-height: ' + (this.resizeCanvas.clientHeight - 10) + 'px;');
|
116
110
|
|
117
111
|
$(this.resizeCanvas).replaceWith($(this.resizeImg));
|
118
112
|
|
@@ -143,7 +137,7 @@
|
|
143
137
|
updateCanvas(this.resizeCanvas, this.ctx, this.resizeImg, this.resizeCanvas.width, this.resizeCanvas.height);
|
144
138
|
|
145
139
|
// enable resize
|
146
|
-
$(this.resizeCanvas).
|
140
|
+
$(this.resizeCanvas).resizableSafe(resizableOptions)
|
147
141
|
.on('mousedown', preventDefault);
|
148
142
|
|
149
143
|
var _this = this;
|
@@ -172,7 +166,16 @@
|
|
172
166
|
_this.pressBackspaceOrDelete(_this);
|
173
167
|
}
|
174
168
|
})
|
175
|
-
.on('focus', preventDefault)
|
169
|
+
.on('focus', preventDefault)
|
170
|
+
.on('blur', function () {
|
171
|
+
_this.reset();
|
172
|
+
// save changes
|
173
|
+
if (trumbowyg !== null){
|
174
|
+
trumbowyg.syncCode();
|
175
|
+
// notify changes
|
176
|
+
trumbowyg.$c.trigger('tbwchange');
|
177
|
+
}
|
178
|
+
});
|
176
179
|
|
177
180
|
this.resizeCanvas.focus();
|
178
181
|
|
@@ -191,25 +194,28 @@
|
|
191
194
|
};
|
192
195
|
};
|
193
196
|
|
194
|
-
// object to interact with canvas
|
195
|
-
var resizeWithCanvas = new ResizeWithCanvas();
|
196
|
-
|
197
|
-
function destroyResizable(trumbowyg) {
|
198
|
-
// clean html code
|
199
|
-
trumbowyg.$ed.find('canvas.resizable')
|
200
|
-
.resizable('destroy')
|
201
|
-
.off('mousedown', preventDefault)
|
202
|
-
.removeClass('resizable');
|
203
|
-
|
204
|
-
resizeWithCanvas.reset();
|
205
|
-
|
206
|
-
trumbowyg.syncCode();
|
207
|
-
}
|
208
|
-
|
209
197
|
$.extend(true, $.trumbowyg, {
|
210
198
|
plugins: {
|
211
199
|
resizimg: {
|
200
|
+
destroyResizable: function () {},
|
212
201
|
init: function (trumbowyg) {
|
202
|
+
var destroyResizable = this.destroyResizable;
|
203
|
+
|
204
|
+
// object to interact with canvas
|
205
|
+
var resizeWithCanvas = new ResizeWithCanvas(trumbowyg);
|
206
|
+
|
207
|
+
this.destroyResizable = function () {
|
208
|
+
// clean html code
|
209
|
+
trumbowyg.$ed.find('canvas.resizable')
|
210
|
+
.resizableSafe('destroy')
|
211
|
+
.off('mousedown', preventDefault)
|
212
|
+
.removeClass('resizable');
|
213
|
+
|
214
|
+
resizeWithCanvas.reset();
|
215
|
+
|
216
|
+
trumbowyg.syncCode();
|
217
|
+
};
|
218
|
+
|
213
219
|
trumbowyg.o.plugins.resizimg = $.extend(true, {},
|
214
220
|
defaultOptions,
|
215
221
|
trumbowyg.o.plugins.resizimg || {},
|
@@ -269,8 +275,9 @@
|
|
269
275
|
|
270
276
|
preventDefault(e);
|
271
277
|
resizeWithCanvas.reset();
|
272
|
-
|
273
|
-
|
278
|
+
//sync
|
279
|
+
trumbowyg.syncCode();
|
280
|
+
// notify changes
|
274
281
|
trumbowyg.$c.trigger('tbwchange');
|
275
282
|
});
|
276
283
|
|
@@ -286,16 +293,17 @@
|
|
286
293
|
|
287
294
|
// Destroy
|
288
295
|
trumbowyg.$c.on('tbwblur', function () {
|
289
|
-
//
|
296
|
+
// when canvas is created the tbwblur is called
|
297
|
+
// this code avoid to destroy the canvas that allow the image resizing
|
290
298
|
if (resizeWithCanvas.isFocusedNow()) {
|
291
299
|
resizeWithCanvas.blurNow();
|
292
300
|
} else {
|
293
|
-
destroyResizable(
|
301
|
+
destroyResizable();
|
294
302
|
}
|
295
303
|
});
|
296
304
|
},
|
297
|
-
destroy: function (
|
298
|
-
destroyResizable(
|
305
|
+
destroy: function () {
|
306
|
+
this.destroyResizable();
|
299
307
|
}
|
300
308
|
}
|
301
309
|
}
|
data/app/assets/javascripts/activeadmin/trumbowyg/plugins/resizimg/trumbowyg.resizimg.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e){"use strict";
|
1
|
+
!function(e){"use strict";var i={minSize:32,step:4};function t(e){e.stopPropagation(),e.preventDefault()}var s=function(i){this.resizeCanvas=document.createElement("canvas"),this.resizeCanvas.setAttribute("tabindex","0"),this.resizeCanvas.id="trumbowyg-resizimg-"+ +new Date,this.ctx=null,this.resizeImg=null,this.pressEscape=function(e){e.reset()},this.pressBackspaceOrDelete=function(t){e(t.resizeCanvas).remove(),t.resizeImg=null,null!==i&&(i.syncCode(),i.$c.trigger("tbwchange"))};var s,n,r=!1,a=!1,o=function(e){var i=e.getBoundingClientRect();s=i.left,n=i.top},h=function(e,i,t,s,n){return i.translate(.5,.5),i.lineWidth=1,i.drawImage(t,5,5,s-10,n-10),i.beginPath(),i.rect(5,5,s-10,n-10),i.stroke(),i.beginPath(),i.fillStyle="rgb(255, 255, 255)",i.rect(s-10,n-10,9,9),i.fill(),i.stroke(),o(e),i};this.init=function(){var i=this;e(window).on("scroll resize",(function(){i.reCalcOffset()}))},this.reCalcOffset=function(){o(this.resizeCanvas)},this.canvasId=function(){return this.resizeCanvas.id},this.isActive=function(){return null!==this.resizeImg},this.isFocusedNow=function(){return r},this.blurNow=function(){r=!1},this.reset=function(){null!==this.resizeImg&&(this.resizeImg.setAttribute("style","width: 100%; max-width: "+(this.resizeCanvas.clientWidth-10)+"px; height: auto; max-height: "+(this.resizeCanvas.clientHeight-10)+"px;"),e(this.resizeCanvas).replaceWith(e(this.resizeImg)),this.resizeCanvas.removeAttribute("style"),this.resizeImg=null)},this.setup=function(o,c){if(this.resizeImg=o,!this.resizeCanvas.getContext)return!1;r=!0,this.resizeCanvas.width=e(this.resizeImg).width()+10,this.resizeCanvas.height=e(this.resizeImg).height()+10,this.resizeCanvas.style.margin="-5px",this.ctx=this.resizeCanvas.getContext("2d"),e(this.resizeImg).replaceWith(e(this.resizeCanvas)),h(this.resizeCanvas,this.ctx,this.resizeImg,this.resizeCanvas.width,this.resizeCanvas.height),e(this.resizeCanvas).resizableSafe(c).on("mousedown",t);var u=this;return e(this.resizeCanvas).on("mousemove",(function(e){var i=Math.round(e.clientX-s),t=Math.round(e.clientY-n),r=a;u.ctx.rect(u.resizeCanvas.width-10,u.resizeCanvas.height-10,9,9),r!==(a=u.ctx.isPointInPath(i,t))&&(this.style.cursor=a?"se-resize":"default")})).on("keydown",(function(e){if(u.isActive()){var i=e.keyCode;27===i?u.pressEscape(u):8!==i&&46!==i||u.pressBackspaceOrDelete(u)}})).on("focus",t).on("blur",(function(){u.reset(),null!==i&&(i.syncCode(),i.$c.trigger("tbwchange"))})),this.resizeCanvas.focus(),!0},this.refresh=function(){this.resizeCanvas.getContext&&(this.resizeCanvas.width=this.resizeCanvas.clientWidth,this.resizeCanvas.height=this.resizeCanvas.clientHeight,h(this.resizeCanvas,this.ctx,this.resizeImg,this.resizeCanvas.width,this.resizeCanvas.height))}};e.extend(!0,e.trumbowyg,{plugins:{resizimg:{destroyResizable:function(){},init:function(n){var r=this.destroyResizable,a=new s(n);function o(){n.$ed.find("img").off("click").on("click",(function(e){a.isActive()&&a.reset(),a.setup(this,n.o.plugins.resizimg.resizable),t(e)}))}this.destroyResizable=function(){n.$ed.find("canvas.resizable").resizableSafe("destroy").off("mousedown",t).removeClass("resizable"),a.reset(),n.syncCode()},n.o.plugins.resizimg=e.extend(!0,{},i,n.o.plugins.resizimg||{},{resizable:{resizeWidth:!1,onDragStart:function(e,i){var t=n.o.plugins.resizimg,s=e.pageX-i.offset().left,r=e.pageY-i.offset().top;if(s<i.width()-t.minSize||r<i.height()-t.minSize)return!1},onDrag:function(e,i,t,s){var r=n.o.plugins.resizimg;return s<r.minSize&&(s=r.minSize),s-=s%r.step,i.height(s),!1},onDragEnd:function(){a.refresh(),n.syncCode()}}}),n.$c.on("tbwinit",(function(){o(),n.$ed.on("click",(function(i){e(i.target).is("img")||i.target.id===a.canvasId()||(t(i),a.reset(),n.syncCode(),n.$c.trigger("tbwchange"))})),n.$ed.on("scroll",(function(){a.reCalcOffset()}))})),n.$c.on("tbwfocus tbwchange",o),n.$c.on("tbwresize",(function(){a.reCalcOffset()})),n.$c.on("tbwblur",(function(){a.isFocusedNow()?a.blurNow():r()}))},destroy:function(){this.destroyResizable()}}}})}(jQuery);
|
@@ -24,11 +24,21 @@
|
|
24
24
|
rubyModal: 'Ruby modal',
|
25
25
|
rubyText: 'Ruby tekst'
|
26
26
|
},
|
27
|
+
et: {
|
28
|
+
ruby: 'Lisa ruby tekst',
|
29
|
+
rubyModal: 'Ruby modaal',
|
30
|
+
rubyText: 'Ruby tekst'
|
31
|
+
},
|
27
32
|
fr: {
|
28
33
|
ruby: 'Ajouter du texte ruby',
|
29
34
|
rubyModal: 'Modale ruby',
|
30
35
|
rubyText: 'Texte ruby'
|
31
36
|
},
|
37
|
+
hu: {
|
38
|
+
ruby: 'Ruby szöveg hozzáadás',
|
39
|
+
rubyModal: 'Ruby modal',
|
40
|
+
rubyText: 'Ruby szöveg'
|
41
|
+
},
|
32
42
|
id: {
|
33
43
|
ruby: 'Sisipkan teks ruby',
|
34
44
|
rubyModal: 'Modal teks ruby',
|
@@ -1 +1 @@
|
|
1
|
-
!function(
|
1
|
+
!function(u){"use strict";u.extend(!0,u.trumbowyg,{langs:{en:{ruby:"Add ruby text",rubyModal:"Ruby modal",rubyText:"Ruby text"},da:{ruby:"Tilføj ruby tekst",rubyModal:"Ruby modal",rubyText:"Ruby tekst"},et:{ruby:"Lisa ruby tekst",rubyModal:"Ruby modaal",rubyText:"Ruby tekst"},fr:{ruby:"Ajouter du texte ruby",rubyModal:"Modale ruby",rubyText:"Texte ruby"},hu:{ruby:"Ruby szöveg hozzáadás",rubyModal:"Ruby modal",rubyText:"Ruby szöveg"},id:{ruby:"Sisipkan teks ruby",rubyModal:"Modal teks ruby",rubyText:"Teks ruby"},ko:{ruby:"루비 문자 넣기",rubyModal:"대상 문자",rubyText:"루비 문자"},pt_br:{ruby:"Adicionar texto ruby",rubyModal:"Modal ruby",rubyText:"Texto ruby"},tr:{ruby:"Ruby metni ekle",rubyModal:"Ruby modal",rubyText:"Ruby metni"},zh_tw:{ruby:"加入 ruby 文字",rubyModal:"Ruby 彈跳視窗",rubyText:"Ruby 文字"}},plugins:{ruby:{init:function(r){var b={fn:function(){r.saveRange(),r.openModalInsert(r.lang.ruby,{rubyText:{label:r.lang.rubyText,required:!1},modal:{label:r.lang.rubyModal,value:r.getRangeText(),required:!0}},(function(b){var e=u('<ruby title="'+b.rubyText+'">'+b.modal+"<rp> (</rp><rt>"+b.rubyText+"</rt><rp>)</rp></ruby>")[0];return r.range.deleteContents(),r.range.insertNode(e),r.syncCode(),r.$c.trigger("tbwchange"),!0}))}};r.addBtnDef("ruby",b)}}}})}(jQuery);
|
data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/trumbowyg.specialchars.js
CHANGED
@@ -28,9 +28,15 @@
|
|
28
28
|
en: {
|
29
29
|
specialChars: 'Special characters'
|
30
30
|
},
|
31
|
+
et: {
|
32
|
+
specialChars: 'Erimärgid'
|
33
|
+
},
|
31
34
|
fr: {
|
32
35
|
specialChars: 'Caractères spéciaux'
|
33
36
|
},
|
37
|
+
hu: {
|
38
|
+
specialChars: 'Speciális karakterek'
|
39
|
+
},
|
34
40
|
ko: {
|
35
41
|
specialChars: '특수문자'
|
36
42
|
},
|
data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/trumbowyg.specialchars.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(
|
1
|
+
!function(a){"use strict";var s={symbolList:["0024","20AC","00A3","00A2","00A5","00A4","2030",null,"00A9","00AE","2122",null,"00A7","00B6","00C6","00E6","0152","0153",null,"2022","25CF","2023","25B6","2B29","25C6",null,"00B1","00D7","00F7","21D2","21D4","220F","2211","2243","2264","2265"]};function e(s){var e=[];return a.each(s.o.plugins.specialchars.symbolList,(function(a,r){var n="symbol-"+(r=null===r?" ":"&#x"+r).replace(/:/g,""),i={text:r,hasIcon:!1,fn:function(){var a=String.fromCodePoint(parseInt(r.replace("&#","0")));return s.execCmd("insertText",a),!0}};s.addBtnDef(n,i),e.push(n)})),e}a.extend(!0,a.trumbowyg,{langs:{en:{specialChars:"Special characters"},et:{specialChars:"Erimärgid"},fr:{specialChars:"Caractères spéciaux"},hu:{specialChars:"Speciális karakterek"},ko:{specialChars:"특수문자"}},plugins:{specialchars:{init:function(a){a.o.plugins.specialchars=a.o.plugins.specialchars||s;var r={dropdown:e(a)};a.addBtnDef("specialChars",r)}}}})}(jQuery);
|
data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/ui/trumbowyg.specialchars.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Trumbowyg v2.
|
2
|
+
* Trumbowyg v2.25.0 - A lightweight WYSIWYG editor
|
3
3
|
* Trumbowyg plugin stylesheet
|
4
4
|
* ------------------------
|
5
5
|
* @link http://alex-d.github.io/Trumbowyg
|
@@ -37,7 +37,8 @@
|
|
37
37
|
height: 27px;
|
38
38
|
width: 27px;
|
39
39
|
background: inherit;
|
40
|
-
box-shadow: #000 0 0 2px;
|
40
|
+
-webkit-box-shadow: #000 0 0 2px;
|
41
|
+
box-shadow: #000 0 0 2px;
|
41
42
|
z-index: 10;
|
42
43
|
background-color: transparent; }
|
43
44
|
|
@@ -1,2 +1,2 @@
|
|
1
|
-
/** Trumbowyg v2.
|
2
|
-
.trumbowyg-symbol-\ -dropdown-button{display:none!important}.trumbowyg-symbol-\ -dropdown-button+button{clear:both}.trumbowyg-dropdown-specialChars{width:248px;padding:5px 3px 3px}.trumbowyg-dropdown-specialChars button{display:block;position:relative;float:left;height:26px;width:26px;padding:0;margin:2px;line-height:24px;text-align:center}.trumbowyg-dropdown-specialChars button:focus::after,.trumbowyg-dropdown-specialChars button:hover::after{display:block;position:absolute;top:-5px;left:-5px;height:27px;width:27px;background:inherit;box-shadow:#000 0 0 2px;z-index:10;background-color:transparent}.trumbowyg .specialChars{width:22px;height:22px;display:inline-block}
|
1
|
+
/** Trumbowyg v2.25.0 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */
|
2
|
+
.trumbowyg-symbol-\ -dropdown-button{display:none!important}.trumbowyg-symbol-\ -dropdown-button+button{clear:both}.trumbowyg-dropdown-specialChars{width:248px;padding:5px 3px 3px}.trumbowyg-dropdown-specialChars button{display:block;position:relative;float:left;height:26px;width:26px;padding:0;margin:2px;line-height:24px;text-align:center}.trumbowyg-dropdown-specialChars button:focus::after,.trumbowyg-dropdown-specialChars button:hover::after{display:block;position:absolute;top:-5px;left:-5px;height:27px;width:27px;background:inherit;-webkit-box-shadow:#000 0 0 2px;box-shadow:#000 0 0 2px;z-index:10;background-color:transparent}.trumbowyg .specialChars{width:22px;height:22px;display:inline-block}
|
@@ -29,6 +29,14 @@
|
|
29
29
|
tableDestroy: 'Delete table',
|
30
30
|
error: 'Error'
|
31
31
|
},
|
32
|
+
cs: {
|
33
|
+
table: 'Vytvořit příkaz Table',
|
34
|
+
tableAddRow: 'Přidat řádek',
|
35
|
+
tableAddRowAbove: 'Přidat řádek',
|
36
|
+
tableAddColumnLeft: 'Přidat sloupec',
|
37
|
+
tableAddColumn: 'Přidat sloupec',
|
38
|
+
error: 'Chyba'
|
39
|
+
},
|
32
40
|
da: {
|
33
41
|
table: 'Indsæt tabel',
|
34
42
|
tableAddRow: 'Tilføj række',
|
@@ -51,13 +59,16 @@
|
|
51
59
|
tableDestroy: 'Tabelle löschen',
|
52
60
|
error: 'Error'
|
53
61
|
},
|
54
|
-
|
55
|
-
table: '
|
56
|
-
tableAddRow: '
|
57
|
-
tableAddRowAbove: '
|
58
|
-
tableAddColumnLeft: '
|
59
|
-
tableAddColumn: '
|
60
|
-
|
62
|
+
et: {
|
63
|
+
table: 'Sisesta tabel',
|
64
|
+
tableAddRow: 'Lisa rida',
|
65
|
+
tableAddRowAbove: 'Lisa rida üles',
|
66
|
+
tableAddColumnLeft: 'Lisa tulp vasakule',
|
67
|
+
tableAddColumn: 'Lisa tulp paremale',
|
68
|
+
tableDeleteRow: 'Kustuta rida',
|
69
|
+
tableDeleteColumn: 'Kustuta tulp',
|
70
|
+
tableDestroy: 'Kustuta tabel',
|
71
|
+
error: 'Viga'
|
61
72
|
},
|
62
73
|
fr: {
|
63
74
|
table: 'Insérer un tableau',
|
@@ -70,13 +81,57 @@
|
|
70
81
|
tableDestroy: 'Effacer le tableau',
|
71
82
|
error: 'Erreur'
|
72
83
|
},
|
73
|
-
|
74
|
-
table: '
|
75
|
-
tableAddRow: '
|
76
|
-
tableAddRowAbove: '
|
77
|
-
tableAddColumnLeft: '
|
78
|
-
tableAddColumn: '
|
79
|
-
|
84
|
+
hu: {
|
85
|
+
table: 'Táblázat beszúrás',
|
86
|
+
tableAddRow: 'Sor hozzáadás',
|
87
|
+
tableAddRowAbove: 'Sor beszúrás fönt',
|
88
|
+
tableAddColumnLeft: 'Sor beszúrás balra',
|
89
|
+
tableAddColumn: 'Sor beszúrás jobbra',
|
90
|
+
tableDeleteRow: 'Sor törlés',
|
91
|
+
tableDeleteColumn: 'Oszlop törlés',
|
92
|
+
tableDestroy: 'Táblázat törlés',
|
93
|
+
error: 'Hiba'
|
94
|
+
},
|
95
|
+
id: {
|
96
|
+
table: 'Sisipkan tabel',
|
97
|
+
tableAddRow: 'Sisipkan baris',
|
98
|
+
tableAddRowAbove: 'Sisipkan baris',
|
99
|
+
tableAddColumnLeft: 'Sisipkan kolom',
|
100
|
+
tableAddColumn: 'Sisipkan kolom',
|
101
|
+
tableDeleteRow: 'Hapus baris',
|
102
|
+
tableDeleteColumn: 'Hapus kolom',
|
103
|
+
tableDestroy: 'Hapus tabel',
|
104
|
+
error: 'Galat'
|
105
|
+
},
|
106
|
+
ja: {
|
107
|
+
table: '表の挿入',
|
108
|
+
tableAddRow: '行の追加',
|
109
|
+
tableAddRowAbove: '行の追加',
|
110
|
+
tableAddColumnLeft: '列の追加',
|
111
|
+
tableAddColumn: '列の追加',
|
112
|
+
error: 'エラー'
|
113
|
+
},
|
114
|
+
ko: {
|
115
|
+
table: '표 넣기',
|
116
|
+
tableAddRow: '줄 추가',
|
117
|
+
tableAddRowAbove: '줄 추가',
|
118
|
+
tableAddColumnLeft: '칸 추가',
|
119
|
+
tableAddColumn: '칸 추가',
|
120
|
+
tableDeleteRow: '줄 삭제',
|
121
|
+
tableDeleteColumn: '칸 삭제',
|
122
|
+
tableDestroy: '표 지우기',
|
123
|
+
error: '에러'
|
124
|
+
},
|
125
|
+
pt_br: {
|
126
|
+
table: 'Inserir tabela',
|
127
|
+
tableAddRow: 'Adicionar linha',
|
128
|
+
tableAddRowAbove: 'Adicionar linha',
|
129
|
+
tableAddColumnLeft: 'Adicionar coluna',
|
130
|
+
tableAddColumn: 'Adicionar coluna',
|
131
|
+
tableDeleteRow: 'Deletar linha',
|
132
|
+
tableDeleteColumn: 'Deletar coluna',
|
133
|
+
tableDestroy: 'Deletar tabela',
|
134
|
+
error: 'Erro'
|
80
135
|
},
|
81
136
|
ru: {
|
82
137
|
table: 'Вставить таблицу',
|
@@ -89,20 +144,23 @@
|
|
89
144
|
tableDestroy: 'Удалить таблицу',
|
90
145
|
error: 'Ошибка'
|
91
146
|
},
|
92
|
-
|
93
|
-
table: '
|
94
|
-
tableAddRow: '
|
95
|
-
tableAddRowAbove: '
|
96
|
-
tableAddColumnLeft: '
|
97
|
-
tableAddColumn: '
|
98
|
-
error: '
|
147
|
+
sk: {
|
148
|
+
table: 'Vytvoriť tabuľky',
|
149
|
+
tableAddRow: 'Pridať riadok',
|
150
|
+
tableAddRowAbove: 'Pridať riadok',
|
151
|
+
tableAddColumnLeft: 'Pridať stĺpec',
|
152
|
+
tableAddColumn: 'Pridať stĺpec',
|
153
|
+
error: 'Chyba'
|
99
154
|
},
|
100
155
|
tr: {
|
101
156
|
table: 'Tablo ekle',
|
102
157
|
tableAddRow: 'Satır ekle',
|
103
|
-
tableAddRowAbove: '
|
104
|
-
tableAddColumnLeft: '
|
105
|
-
tableAddColumn: '
|
158
|
+
tableAddRowAbove: 'Yukarıya satır ekle',
|
159
|
+
tableAddColumnLeft: 'Sola sütun ekle',
|
160
|
+
tableAddColumn: 'Sağa sütun ekle',
|
161
|
+
tableDeleteRow: 'Satırı sil',
|
162
|
+
tableDeleteColumn: 'Sütunu sil',
|
163
|
+
tableDestroy: 'Tabloyu sil',
|
106
164
|
error: 'Hata'
|
107
165
|
},
|
108
166
|
zh_tw: {
|
@@ -116,40 +174,17 @@
|
|
116
174
|
tableDestroy: '刪除表格',
|
117
175
|
error: '錯誤'
|
118
176
|
},
|
119
|
-
|
120
|
-
table: '
|
121
|
-
tableAddRow: '
|
122
|
-
tableAddRowAbove: '
|
123
|
-
tableAddColumnLeft: '
|
124
|
-
tableAddColumn: '
|
125
|
-
tableDeleteRow: '
|
126
|
-
tableDeleteColumn: '
|
127
|
-
tableDestroy: '
|
128
|
-
error: '
|
129
|
-
}
|
130
|
-
pt_br: {
|
131
|
-
table: 'Inserir tabela',
|
132
|
-
tableAddRow: 'Adicionar linha',
|
133
|
-
tableAddRowAbove: 'Adicionar linha',
|
134
|
-
tableAddColumnLeft: 'Adicionar coluna',
|
135
|
-
tableAddColumn: 'Adicionar coluna',
|
136
|
-
tableDeleteRow: 'Deletar linha',
|
137
|
-
tableDeleteColumn: 'Deletar coluna',
|
138
|
-
tableDestroy: 'Deletar tabela',
|
139
|
-
error: 'Erro'
|
140
|
-
},
|
141
|
-
ko: {
|
142
|
-
table: '표 넣기',
|
143
|
-
tableAddRow: '줄 추가',
|
144
|
-
tableAddRowAbove: '줄 추가',
|
145
|
-
tableAddColumnLeft: '칸 추가',
|
146
|
-
tableAddColumn: '칸 추가',
|
147
|
-
tableDeleteRow: '줄 삭제',
|
148
|
-
tableDeleteColumn: '칸 삭제',
|
149
|
-
tableDestroy: '표 지우기',
|
150
|
-
error: '에러'
|
151
|
-
},
|
152
|
-
// jshint camelcase:true
|
177
|
+
es: {
|
178
|
+
table: 'Insertar tabla',
|
179
|
+
tableAddRow: 'Agregar fila',
|
180
|
+
tableAddRowAbove: 'Agregar fila arriba',
|
181
|
+
tableAddColumnLeft: 'Agregar columna a la izquierda',
|
182
|
+
tableAddColumn: 'Agregar columna a la derecha',
|
183
|
+
tableDeleteRow: 'Borrar fila',
|
184
|
+
tableDeleteColumn: 'Borrar columna',
|
185
|
+
tableDestroy: 'Borrar tabla',
|
186
|
+
error: 'Error'
|
187
|
+
}// jshint camelcase:true
|
153
188
|
},
|
154
189
|
|
155
190
|
plugins: {
|