activeadmin_trumbowyg 0.2.8 → 0.2.16
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 +3 -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
@@ -1 +1 @@
|
|
1
|
-
!function(x){"use strict";function F(F){var E=[];return x.each(F.o.plugins.emoji.emojiList,function(B,A){if(x.isArray(A)){var D=A[0],C=A[1],e='<img src="'+C+'" alt="'+D+'">',i="emoji-"+D.replace(/:/g,""),o={hasIcon:!1,text:e,fn:function(){return F.execCmd("insertImage",C,!1,!0),!0}};F.addBtnDef(i,o),E.push(i)}else{var n=A.replace(/:/g,""),t="emoji-"+n,r={text:A,fn:function(){var x=String.fromCodePoint(A.replace("&#","0"));return F.execCmd("insertText",x),!0}};F.addBtnDef(t,r),E.push(t)}}),E}var E={emojiList:["⁉","™","ℹ","↔","↕","↖","↗","↘","↙","⌨","☀","☁","☂","☃","☄","☑","☔","☕","☘","☠","☢","☣","☦","☸","☹","♀","♂","♈","♉","♐","♑","♒","♓","♠","♣","♥","♦","♨","⚒","⚓","⚔","⚕","⚖","⚗","⚙","✂","✅","✈","✉","✒","✔","✖","✡","✨","✳","✴","❄","❇","❓","❔","❕","❗","❣","❤","➕","➖","➗","⤴","⤵","〰","㊗","㊙","🧡","💛","💚","💙","💜","🖤","💔","💕","💞","💓","💗","💖","💘","💝","💟","☮","✝","☪","🕉","🔯","🕎","☯","🛐","⛎","♊","♋","♌","♍","♎","♏","🆔","⚛","♾","🉑","📴","📳","🈶","🈚","🈸","🈺","🈷","🆚","💮","🉐","🈴","🈵","🈹","🈲","🅰","🅱","🆎","🆑","🅾","🆘","❌","⭕","🛑","⛔","📛","🚫","💯","💢","🚷","🚯","🚳","🚱","🔞","📵","🚭","‼","🔅","🔆","〽","⚠","🚸","🔱","⚜","🔰","♻","🈯","💹","❎","🌐","💠","Ⓜ","🌀","💤","🏧","🚾","♿","🅿","🈳","🈂","🛂","🛃","🛄","🛅","🚹","🚺","🚼","🚻","🚮","🎦","📶","🈁","🔣","🔤","🔡","🔠","🆖","🆗","🆙","🆒","🆕","🆓","0","1","2","3","4","5","6","7","8","9","🔟","🔢","#","*","⏏","▶","⏸","⏯","⏹","⏺","⏭","⏮","⏩","⏪","⏫","⏬","◀","🔼","🔽","➡","⬅","⬆","⬇","↪","↩","🔀","🔁","🔂","🔄","🔃","🎵","🎶","💲","💱","©","®","➰","➿","🔚","🔙","🔛","🔝","🔜","🔘","⚪","⚫","🔴","🔵","🔺","🔻","🔸","🔹","🔶","🔷","🔳","🔲","▪","▫","◾","◽","◼","◻","⬛","⬜","🔈","🔇","🔉","🔊","🔔","🔕","📣","📢","🗨","👁","💬","💭","🗯","🃏","🎴","🀄","🕐","🕑","🕒","🕓","🕔","🕕","🕖","🕗","🕘","🕙","🕚","🕛","🕜","🕝","🕞","🕟","🕠","🕡","🕢","🕣","🕤","🕥","🕦","🕧","⚽","🏀","🏈","⚾","🥎","🎾","🏐","🏉","🎱","🏓","🏸","🥅","🏒","🏑","🏏","🥍","⛳","🥏","🏹","🎣","🥊","🥋","🎽","🛹","⛸","🥌","🛷","🎿","⛷","🏂","🏋","🤼","🤸","⛹","🤺","🤾","🏌","🏇","🧘","🏄","🏊","🤽","🚣","🧗","🚵","🚴","🏆","🥇","🥈","🥉","🏅","🎖","🏵","🎗","🎫","🎟","🎪","🤹","🎭","🎨","🎬","🎤","🎧","🎼","🎹","🥁","🎷","🎺","🎸","🎻","🎲","🎯","🎳","🎮","🎰","⌚","📱","📲","💻","🖥","🖨","🖱","🖲","🕹","♟","🧩","🗜","💽","💾","💿","📀","📼","📷","📸","📹","🎥","📽","🎞","📞","☎","📟","📠","📺","📻","🎙","🎚","🎛","⏱","⏲","⏰","🕰","⌛","⏳","📡","🧭","🔋","🔌","🧲","💡","🔦","🕯","🧯","🗑","🛢","💸","💵","💴","💶","💷","💰","💳","💎","🧿","🧱","🧰","🔧","🔨","🛠","⛏","🔩","⛓","🔫","💣","🔪","🗡","🛡","🚬","⚰","⚱","🏺","🔮","📿","💈","🧪","🧫","🧬","🧮","🔭","🔬","🕳","💊","💉","🌡","🚽","🚰","🚿","🛁","🛀","🧹","🧺","🧻","🧼","🧽","🧴","🧵","🧶","🛎","🔑","🗝","🚪","🛋","🛏","🛌","🧸","🖼","🛍","🛒","🎁","🎈","🎏","🎀","🎊","🎉","🎎","🏮","🎐","🧧","📩","📨","📧","💌","📥","📤","📦","🏷","📪","📫","📬","📭","📮","📯","📜","📃","📄","🧾","📑","📊","📈","📉","🗒","🗓","📆","📅","📇","🗃","🗳","🗄","📋","📁","📂","🗂","🗞","📰","📓","📔","📒","📕","📗","📘","📙","📚","📖","🔖","🔗","📎","🖇","📐","📏","🧷","📌","📍","🖊","🖋","🖌","🖍","📝","✏","🔍","🔎","🔏","🔐","🐶","🐱","🐭","🐹","🐰","🦊","🦝","🐻","🐼","🦘","🦡","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵","🙈","🙉","🙊","🐒","🐔","🐧","🐦","🐤","🐣","🐥","🦆","🦢","🦅","🦉","🦜","🦚","🦇","🐺","🐗","🐴","🦄","🐝","🐛","🦋","🐌","🐚","🐞","🐜","🦗","🕷","🕸","🦂","🦟","🦠","🐢","🐍","🦎","🦖","🦕","🐙","🦑","🦐","🦀","🦞","🐡","🐠","🐟","🐬","🐳","🐋","🦈","🐊","🐅","🐆","🦓","🦍","🐘","🦏","🦛","🐪","🐫","🦒","🦙","🐃","🐂","🐄","🐎","🐖","🐏","🐑","🐐","🦌","🐕","🐩","🐈","🐓","🦃","🕊","🐇","🐁","🐀","🐿","🦔","🐾","🐉","🐲","🌵","🎄","🌲","🌳","🌴","🌱","🌿","🍀","🎍","🎋","🍃","🍂","🍁","🍄","🌾","💐","🌷","🌹","🥀","🌺","🌸","🌼","🌻","🌞","🌝","🌛","🌜","🌚","🌕","🌖","🌗","🌘","🌑","🌒","🌓","🌔","🌙","🌎","🌍","🌏","💫","⭐","🌟","⚡","💥","🔥","🌪","🌈","🌤","⛅","🌥","🌦","🌧","⛈","🌩","🌨","⛄","🌬","💨","💧","💦","🌊","🌫","🍏","🍎","🍐","🍊","🍋","🍌","🍉","🍇","🍓","🍈","🍒","🍑","🥭","🍍","🥥","🥝","🍅","🍆","🥑","🥦","🥬","🥒","🌶","🌽","🥕","🥔","🍠","🥐","🍞","🥖","🥨","🥯","🧀","🥚","🍳","🥞","🥓","🥩","🍗","🍖","🌭","🍔","🍟","🍕","🥪","🥙","🌮","🌯","🥗","🥘","🥫","🍝","🍜","🍲","🍛","🍣","🍱","🍤","🍙","🍚","🍘","🍥","🥠","🍢","🍡","🍧","🍨","🍦","🥧","🍰","🎂","🥮","🧁","🍮","🍭","🍬","🍫","🍿","🧂","🍩","🥟","🍪","🌰","🥜","🍯","🥛","🍼","🍵","🥤","🍶","🍺","🍻","🥂","🍷","🥃","🍸","🍹","🍾","🥄","🍴","🍽","🥣","🥡","🥢","😀","😃","😄","😁","😆","😅","😂","🤣","☺","😊","😇","🙂","🙃","😉","😌","😍","😘","🥰","😗","😙","😚","😋","😛","😝","😜","🤪","🤨","🧐","🤓","😎","🤩","🥳","😏","😒","😞","😔","😟","😕","🙁","😣","😖","😫","😩","😢","😭","😤","😠","😡","🤬","🤯","😳","😱","😨","😰","🥵","🥶","🥺","😥","😓","🤗","🤔","🤭","🤫","🤥","😶","😐","😑","😬","🙄","😯","😦","😧","😮","😲","😴","🤤","😪","😵","🤐","🥴","🤢","🤮","🤧","😷","🤒","🤕","🤑","🤠","😈","👿","👹","👺","🤡","💩","👻","💀","👽","👾","🤖","🎃","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🤲","👐","🙌","👏","🤝","👍","👎","👊","✊","🤛","🤜","🤞","✌","🤟","🤘","👌","👈","👉","👆","👇","☝","✋","🤚","🖐","🖖","👋","🤙","💪","🦵","🦶","🖕","✍","🙏","💍","💄","💋","👄","👅","👂","👃","👣","👀","🧠","🦴","🦷","🗣","👤","👥","👶","👧","🧒","👦","👩","🧑","👨","👱","🧔","👵","🧓","👴","👲","👳","🧕","👮","👷","💂","🕵","👰","🤵","👸","🤴","🤶","🎅","🦸","🦹","🧙","🧝","🧛","🧟","🧞","🧜","🧚","👼","🤰","🤱","🙇","💁","🙅","🙆","🙋","🤦","🤷","🙎","🙍","💇","💆","🧖","💅","🤳","💃","🕺","👯","🕴","🚶","🏃","👫","👭","👬","💑","💏","👪","🧥","👚","👕","👖","👔","👗","👙","👘","🥼","👠","👡","👢","👞","👟","🥾","🥿","🧦","🧤","🧣","🎩","🧢","👒","🎓","⛑","👑","👝","👛","👜","💼","🎒","👓","🕶","🥽","🌂","🦰","🦱","🦳","🦲","🇿","🇾","🇽","🇼","🇻","🇺","🇹","🇸","🇷","🇶","🇵","🇴","🇳","🇲","🇱","🇰","🇯","🇮","🇭","🇬","🇫","🇪","🇩","🇨","🇧","🇦","🚗","🚕","🚙","🚌","🚎","🏎","🚓","🚑","🚒","🚐","🚚","🚛","🚜","🛴","🚲","🛵","🏍","🚨","🚔","🚍","🚘","🚖","🚡","🚠","🚟","🚃","🚋","🚞","🚝","🚄","🚅","🚈","🚂","🚆","🚇","🚊","🚉","🛫","🛬","🛩","💺","🧳","🛰","🚀","🛸","🚁","🛶","⛵","🚤","🛥","🛳","⛴","🚢","⛽","🚧","🚦","🚥","🚏","🗺","🗿","🗽","🗼","🏰","🏯","🏟","🎡","🎢","🎠","⛲","⛱","🏖","🏝","🏜","🌋","⛰","🏔","🗻","🏕","⛺","🏠","🏡","🏘","🏚","🏗","🏭","🏢","🏬","🏣","🏤","🏥","🏦","🏨","🏪","🏫","🏩","💒","🏛","⛪","🕌","🕍","🕋","⛩","🛤","🛣","🗾","🎑","🏞","🌅","🌄","🌠","🎇","🎆","🧨","🌇","🌆","🏙","🌃","🌌","🌉","🔒","🔓","🌁","🏳","🏴","🏁","🚩","🎌","🏻","🏼","🏽","🏾","🏿"]};x.extend(!0,x.trumbowyg,{langs:{en:{emoji:"Add an emoji"},da:{emoji:"Tilføj et humørikon"},de:{emoji:"Emoticon einfügen"},fr:{emoji:"Ajouter un emoji"},zh_cn:{emoji:"添加表情"},ru:{emoji:"Вставить emoji"},ja:{emoji:"絵文字の挿入"},tr:{emoji:"Emoji ekle"},ko:{emoji:"이모지 넣기"}},plugins:{emoji:{init:function(x){x.o.plugins.emoji=x.o.plugins.emoji||E;var B={dropdown:F(x)};x.addBtnDef("emoji",B)}}}})}(jQuery);
|
1
|
+
!function(x){"use strict";var F={emojiList:["⁉","™","ℹ","↔","↕","↖","↗","↘","↙","⌨","☀","☁","☂","☃","☄","☑","☔","☕","☘","☠","☢","☣","☦","☸","☹","♀","♂","♈","♉","♐","♑","♒","♓","♠","♣","♥","♦","♨","⚒","⚓","⚔","⚕","⚖","⚗","⚙","✂","✅","✈","✉","✒","✔","✖","✡","✨","✳","✴","❄","❇","❓","❔","❕","❗","❣","❤","➕","➖","➗","⤴","⤵","〰","㊗","㊙","🧡","💛","💚","💙","💜","🖤","🤎","🤍","💔","💕","💞","💓","💗","💖","💘","💝","💟","☮","✝","☪","🕉","🔯","🕎","☯","🛐","⛎","♊","♋","♌","♍","♎","♏","🆔","⚛","🉑","📴","📳","🈶","🈚","🈸","🈺","🈷","🆚","💮","🉐","🈴","🈵","🈹","🈲","🅰","🅱","🆎","🆑","🅾","🆘","❌","⭕","🛑","⛔","📛","🚫","💯","💢","🚷","🚯","🚳","🚱","🔞","📵","🚭","‼","🔅","🔆","〽","⚠","🚸","🔱","⚜","🔰","♻","🈯","💹","❎","🌐","💠","Ⓜ","🌀","💤","🏧","🚾","♿","🅿","🈳","🈂","🛂","🛃","🛄","🛅","🚹","🚺","🚼","🚻","🚮","🎦","📶","🈁","🔣","🔤","🔡","🔠","🆖","🆗","🆙","🆒","🆕","🆓","0","1","2","3","4","5","6","7","8","9","🔟","🔢","#","*","⏏","▶","⏸","⏯","⏹","⏺","⏭","⏮","⏩","⏪","⏫","⏬","◀","🔼","🔽","➡","⬅","⬆","⬇","↪","↩","🔀","🔁","🔂","🔄","🔃","🎵","🎶","♾","💲","💱","©","®","➰","➿","🔚","🔙","🔛","🔝","🔜","🔘","⚪","⚫","🔴","🔵","🟤","🟣","🟢","🟡","🟠","🔺","🔻","🔸","🔹","🔶","🔷","🔳","🔲","▪","▫","◾","◽","◼","◻","⬛","⬜","🟧","🟦","🟥","🟫","🟪","🟩","🟨","🔈","🔇","🔉","🔊","🔔","🔕","📣","📢","🗨","👁","💬","💭","🗯","🃏","🎴","🀄","🕐","🕑","🕒","🕓","🕔","🕕","🕖","🕗","🕘","🕙","🕚","🕛","🕜","🕝","🕞","🕟","🕠","🕡","🕢","🕣","🕤","🕥","🕦","🕧","⚽","🏀","🏈","⚾","🥎","🎾","🏐","🏉","🥏","🎱","🏓","🏸","🏒","🏑","🥍","🏏","🥅","⛳","🏹","🎣","🥊","🥋","🎽","🛹","🛷","🪂","⛸","🥌","🎿","⛷","🏂","🏋","🤼","🤸","⛹","🤺","🤾","🏌","🏇","🧘","🏄","🏊","🤽","🚣","🧗","🚵","🚴","🏆","🥇","🥈","🥉","🏅","🎖","🏵","🎗","🎫","🎟","🎪","🤹","🎭","🎨","🎬","🎤","🎧","🎼","🎹","🥁","🎷","🎺","🪕","🎸","🎻","🎲","♟","🎯","🪁","🪀","🎳","🎮","🎰","🧩","⌚","📱","📲","💻","🖥","🖨","🖱","🖲","🕹","🗜","💽","💾","💿","📀","📼","📷","📸","📹","🎥","📽","🎞","📞","☎","📟","📠","📺","📻","🎙","🎚","🎛","🧭","⏱","⏲","⏰","🕰","⌛","⏳","📡","🔋","🔌","💡","🔦","🕯","🧯","🛢","💸","💵","💴","💶","💷","💰","💳","💎","🧰","🔧","🔨","🛠","⛏","🔩","🧱","⛓","🧲","🔫","💣","🧨","🪓","🪒","🔪","🗡","🛡","🚬","⚰","⚱","🏺","🪔","🔮","📿","🧿","💈","🔭","🔬","🕳","🦯","🩺","🩹","💊","💉","🩸","🧬","🦠","🧫","🧪","🌡","🪑","🧹","🧺","🧻","🚽","🚰","🚿","🛁","🛀","🧼","🧽","🧴","🛎","🔑","🗝","🚪","🛋","🛏","🛌","🧸","🖼","🛍","🛒","🎁","🎈","🎏","🎀","🎊","🎉","🎎","🏮","🎐","🧧","📩","📨","📧","💌","📥","📤","📦","🏷","📪","📫","📬","📭","📮","📯","📜","📃","📄","📑","🧾","📊","📈","📉","🗒","🗓","📆","📅","🗑","📇","🗃","🗳","🗄","📋","📁","📂","🗂","🗞","📰","📓","📔","📒","📕","📗","📘","📙","📚","📖","🔖","🧷","🔗","📎","🖇","📐","📏","🧮","📌","📍","🖊","🖋","🖌","🖍","📝","✏","🔍","🔎","🔏","🔐","🔒","🔓","🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵","🙈","🙉","🙊","🐒","🐔","🐧","🐦","🐤","🐣","🐥","🦆","🦅","🦉","🦇","🐺","🐗","🐴","🦄","🐝","🐛","🦋","🐌","🐚","🐞","🐜","🦟","🦗","🕷","🕸","🦂","🐢","🐍","🦎","🦖","🦕","🐙","🦑","🦐","🦞","🦪","🦀","🐡","🐠","🐟","🐬","🐳","🐋","🦈","🐊","🐅","🐆","🦓","🦍","🦧","🐘","🦛","🦏","🐪","🐫","🦒","🦘","🐃","🐂","🐄","🐎","🐖","🐏","🦙","🐑","🐐","🦌","🐕","🦮","🐩","🐈","🐓","🦃","🦚","🦜","🦢","🦩","🕊","🐇","🦥","🦦","🦨","🦝","🦡","🐁","🐀","🐿","🦔","🐾","🐉","🐲","🌵","🎄","🌲","🌳","🌴","🌱","🌿","🍀","🎍","🎋","🍃","🍂","🍁","🍄","🌾","💐","🌷","🌹","🥀","🌺","🌸","🌼","🌻","🌞","🌝","🌛","🌜","🌚","🌕","🌖","🌗","🌘","🌑","🌒","🌓","🌔","🌙","🌎","🌍","🌏","🪐","💫","⭐","🌟","⚡","💥","🔥","🌪","🌈","🌤","⛅","🌥","🌦","🌧","⛈","🌩","🌨","⛄","🌬","💨","💧","💦","🌊","🌫","🍏","🍎","🍐","🍊","🍋","🍌","🍉","🍇","🍓","🍈","🍒","🍑","🥭","🍍","🥥","🥝","🍅","🍆","🥑","🥦","🥬","🥒","🌶","🌽","🥕","🧅","🧄","🥔","🍠","🥐","🥯","🍞","🥖","🥨","🧀","🥚","🍳","🥞","🧇","🥓","🥩","🍗","🍖","🌭","🍔","🍟","🍕","🥪","🧆","🥙","🌮","🌯","🥗","🥘","🥫","🍝","🍜","🍲","🍛","🍣","🍱","🥟","🍤","🍙","🍚","🍘","🍥","🥠","🥮","🍢","🍡","🍧","🍨","🍦","🥧","🧁","🍰","🎂","🍮","🍭","🍬","🍫","🍿","🍩","🍪","🌰","🥜","🍯","🧈","🥛","🍼","🍵","🧉","🥤","🧃","🧊","🍶","🍺","🍻","🥂","🍷","🥃","🍸","🍹","🍾","🥄","🍴","🍽","🥣","🥡","🥢","🧂","😀","😃","😄","😁","😆","😅","😂","🤣","☺","😊","😇","🙂","🙃","😉","😌","😍","🥰","😘","😗","😙","😚","😋","😛","😝","😜","🤪","🤨","🧐","🤓","😎","🤩","🥳","😏","😒","😞","😔","😟","😕","🙁","😣","😖","😫","😩","🥺","😢","😭","😤","😠","😡","🤬","🤯","😳","🥵","🥶","😱","😨","😰","😥","😓","🤗","🤔","🤭","🥱","🤫","🤥","😶","😐","😑","😬","🙄","😯","😦","😧","😮","😲","😴","🤤","😪","😵","🤐","🥴","🤢","🤮","🤧","😷","🤒","🤕","🤑","🤠","😈","👿","👹","👺","🤡","💩","👻","💀","👽","👾","🤖","🎃","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🤲","👐","🙌","👏","🤝","👍","👎","👊","✊","🤛","🤜","🤞","✌","🤟","🤘","👌","🤏","👈","👉","👆","👇","☝","✋","🤚","🖐","🖖","👋","🤙","💪","🦾","🖕","✍","🙏","🦶","🦵","🦿","💄","💋","👄","🦷","🦴","👅","👂","🦻","👃","👣","👀","🧠","🗣","👤","👥","👶","👧","🧒","👦","👩","🧑","👨","👱","🧔","👵","🧓","👴","👲","👳","🧕","👮","👷","💂","🕵","👰","🤵","👸","🤴","🦸","🦹","🤶","🎅","🧙","🧝","🧛","🧟","🧞","🧜","🧚","👼","🤰","🤱","🙇","💁","🙅","🙆","🙋","🧏","🤦","🤷","🙎","🙍","💇","💆","🧖","💅","🤳","💃","🕺","👯","🕴","🚶","🏃","🧍","🧎","👫","👭","👬","💑","💏","👪","🧶","🧵","🧥","🥼","🦺","👚","👕","👖","🩳","👔","👗","👙","🩱","👘","🥻","🥿","👠","👡","👢","🩰","👞","👟","🥾","🩲","🧦","🧤","🧣","🎩","🧢","👒","🎓","⛑","👑","💍","👝","👛","👜","💼","🎒","🧳","👓","🕶","🥽","🤿","🌂","🦱","🦰","🦳","🦲","🚗","🚕","🚙","🚌","🚎","🏎","🚓","🚑","🚒","🚐","🚚","🚛","🚜","🛺","🛵","🏍","🛴","🚲","🦼","🦽","🚨","🚔","🚍","🚘","🚖","🚡","🚠","🚟","🚃","🚋","🚞","🚝","🚄","🚅","🚈","🚂","🚆","🚇","🚊","🚉","🛫","🛬","🛩","💺","🛰","🚀","🛸","🚁","🛶","⛵","🚤","🛥","🛳","⛴","🚢","⛽","🚧","🚦","🚥","🚏","🗺","🗿","🗽","🗼","🏰","🏯","🏟","🎡","🎢","🎠","⛲","⛱","🏖","🏝","🏜","🌋","⛰","🏔","🗻","🏕","⛺","🏠","🏡","🏘","🏚","🏗","🏭","🏢","🏬","🏣","🏤","🏥","🏦","🏨","🏪","🏫","🏩","💒","🏛","⛪","🕌","🛕","🕍","🕋","⛩","🛤","🛣","🗾","🎑","🏞","🌅","🌄","🌠","🎇","🎆","🌇","🌆","🏙","🌃","🌌","🌉","🌁","🇿","🇾","🇽","🇼","🇻","🇺","🇹","🇸","🇷","🇶","🇵","🇴","🇳","🇲","🇱","🇰","🇯","🇮","🇭","🇬","🇫","🇪","🇩","🇨","🇧","🇦","🏳","🏴","🏁","🚩","🎌","🏻","🏼","🏽","🏾","🏿"]};function A(F){var A=[];return x.each(F.o.plugins.emoji.emojiList,(function(E,B){if(x.isArray(B)){var C=B[0],D=B[1],e='<img src="'+D+'" alt="'+C+'">',i="emoji-"+C.replace(/:/g,""),o={hasIcon:!1,text:e,fn:function(){return F.execCmd("insertImage",D,!1,!0),!0}};F.addBtnDef(i,o),A.push(i)}else{var n="emoji-"+B.replace(/:/g,""),t={text:B,fn:function(){var x=String.fromCodePoint(B.replace("&#","0"));return F.execCmd("insertText",x),!0}};F.addBtnDef(n,t),A.push(n)}})),A}x.extend(!0,x.trumbowyg,{langs:{en:{emoji:"Add an emoji"},da:{emoji:"Tilføj et humørikon"},de:{emoji:"Emoticon einfügen"},et:{emoji:"Lisa emotikon"},fr:{emoji:"Ajouter un emoji"},hu:{emoji:"Emoji beszúrás"},ja:{emoji:"絵文字の挿入"},ko:{emoji:"이모지 넣기"},ru:{emoji:"Вставить emoji"},tr:{emoji:"Emoji ekle"},zh_cn:{emoji:"添加表情"}},plugins:{emoji:{init:function(x){x.o.plugins.emoji=x.o.plugins.emoji||F;var E={dropdown:A(x)};x.addBtnDef("emoji",E)}}}})}(jQuery);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Trumbowyg v2.
|
2
|
+
* Trumbowyg v2.25.1 - A lightweight WYSIWYG editor
|
3
3
|
* Trumbowyg plugin stylesheet
|
4
4
|
* ------------------------
|
5
5
|
* @link http://alex-d.github.io/Trumbowyg
|
@@ -34,7 +34,8 @@
|
|
34
34
|
height: 27px;
|
35
35
|
width: 27px;
|
36
36
|
background: inherit;
|
37
|
-
box-shadow: #000 0 0 2px;
|
37
|
+
-webkit-box-shadow: #000 0 0 2px;
|
38
|
+
box-shadow: #000 0 0 2px;
|
38
39
|
z-index: 10;
|
39
40
|
background-color: transparent; }
|
40
41
|
|
@@ -1,2 +1,2 @@
|
|
1
|
-
/** Trumbowyg v2.
|
2
|
-
.trumbowyg-dropdown-emoji{width:265px;padding:7px 0 7px 5px}.trumbowyg-dropdown-emoji svg{display:none!important}.trumbowyg-dropdown-emoji button{display:block;position:relative;float:left;height:26px;width:26px;padding:0;margin:2px;line-height:24px;text-align:center}.trumbowyg-dropdown-emoji button:focus::after,.trumbowyg-dropdown-emoji 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 .emoji{width:22px;height:22px;display:inline-block}
|
1
|
+
/** Trumbowyg v2.25.1 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */
|
2
|
+
.trumbowyg-dropdown-emoji{width:265px;padding:7px 0 7px 5px}.trumbowyg-dropdown-emoji svg{display:none!important}.trumbowyg-dropdown-emoji button{display:block;position:relative;float:left;height:26px;width:26px;padding:0;margin:2px;line-height:24px;text-align:center}.trumbowyg-dropdown-emoji button:focus::after,.trumbowyg-dropdown-emoji 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 .emoji{width:22px;height:22px;display:inline-block}
|
data/app/assets/javascripts/activeadmin/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.js
CHANGED
@@ -13,27 +13,33 @@
|
|
13
13
|
da: {
|
14
14
|
fontFamily: 'Skrifttype'
|
15
15
|
},
|
16
|
+
de: {
|
17
|
+
fontFamily: 'Schriftart'
|
18
|
+
},
|
19
|
+
et: {
|
20
|
+
fontFamily: 'Font'
|
21
|
+
},
|
16
22
|
fr: {
|
17
23
|
fontFamily: 'Police'
|
18
24
|
},
|
19
|
-
|
20
|
-
fontFamily: '
|
25
|
+
hu: {
|
26
|
+
fontFamily: 'Betűtípus'
|
27
|
+
},
|
28
|
+
ko: {
|
29
|
+
fontFamily: '글꼴'
|
21
30
|
},
|
22
31
|
nl: {
|
23
32
|
fontFamily: 'Lettertype'
|
24
33
|
},
|
34
|
+
pt_br: {
|
35
|
+
fontFamily: 'Fonte',
|
36
|
+
},
|
25
37
|
tr: {
|
26
|
-
fontFamily: 'Yazı
|
38
|
+
fontFamily: 'Yazı tipi'
|
27
39
|
},
|
28
40
|
zh_tw: {
|
29
41
|
fontFamily: '字體',
|
30
42
|
},
|
31
|
-
pt_br: {
|
32
|
-
fontFamily: 'Fonte',
|
33
|
-
},
|
34
|
-
ko: {
|
35
|
-
fontFamily: '글꼴'
|
36
|
-
},
|
37
43
|
}
|
38
44
|
});
|
39
45
|
// jshint camelcase:true
|
data/app/assets/javascripts/activeadmin/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(a){"use strict";
|
1
|
+
!function(a){"use strict";a.extend(!0,a.trumbowyg,{langs:{en:{fontFamily:"Font"},es:{fontFamily:"Fuente"},da:{fontFamily:"Skrifttype"},de:{fontFamily:"Schriftart"},et:{fontFamily:"Font"},fr:{fontFamily:"Police"},hu:{fontFamily:"Betűtípus"},ko:{fontFamily:"글꼴"},nl:{fontFamily:"Lettertype"},pt_br:{fontFamily:"Fonte"},tr:{fontFamily:"Yazı tipi"},zh_tw:{fontFamily:"字體"}}});var n={fontList:[{name:"Arial",family:"Arial, Helvetica, sans-serif"},{name:"Arial Black",family:"Arial Black, Gadget, sans-serif"},{name:"Comic Sans",family:"Comic Sans MS, Textile, cursive, sans-serif"},{name:"Courier New",family:"Courier New, Courier, monospace"},{name:"Georgia",family:"Georgia, serif"},{name:"Impact",family:"Impact, Charcoal, sans-serif"},{name:"Lucida Console",family:"Lucida Console, Monaco, monospace"},{name:"Lucida Sans",family:"Lucida Sans Uncide, Lucida Grande, sans-serif"},{name:"Palatino",family:"Palatino Linotype, Book Antiqua, Palatino, serif"},{name:"Tahoma",family:"Tahoma, Geneva, sans-serif"},{name:"Times New Roman",family:"Times New Roman, Times, serif"},{name:"Trebuchet",family:"Trebuchet MS, Helvetica, sans-serif"},{name:"Verdana",family:"Verdana, Geneva, sans-serif"}]};function i(n){var i=[];return a.each(n.o.plugins.fontfamily.fontList,(function(a,e){n.addBtnDef("fontfamily_"+a,{title:'<span style="font-family: '+e.family+';">'+e.name+"</span>",hasIcon:!1,fn:function(){n.execCmd("fontName",e.family,!0)}}),i.push("fontfamily_"+a)})),i}a.extend(!0,a.trumbowyg,{plugins:{fontfamily:{init:function(e){e.o.plugins.fontfamily=a.extend({},n,e.o.plugins.fontfamily||{}),e.addBtnDef("fontfamily",{dropdown:i(e),hasIcon:!1,text:e.lang.fontFamily})}}}})}(jQuery);
|
@@ -20,6 +20,33 @@
|
|
20
20
|
value: '48px'
|
21
21
|
}
|
22
22
|
},
|
23
|
+
da: {
|
24
|
+
fontsize: 'Skriftstørrelse',
|
25
|
+
fontsizes: {
|
26
|
+
'x-small': 'Ekstra lille',
|
27
|
+
'small': 'Lille',
|
28
|
+
'medium': 'Normal',
|
29
|
+
'large': 'Stor',
|
30
|
+
'x-large': 'Ekstra stor',
|
31
|
+
'custom': 'Brugerdefineret'
|
32
|
+
}
|
33
|
+
},
|
34
|
+
de: {
|
35
|
+
fontsize: 'Schriftgröße',
|
36
|
+
fontsizes: {
|
37
|
+
'x-small': 'Sehr klein',
|
38
|
+
'small': 'Klein',
|
39
|
+
'medium': 'Normal',
|
40
|
+
'large': 'Groß',
|
41
|
+
'x-large': 'Sehr groß',
|
42
|
+
'custom': 'Benutzerdefiniert'
|
43
|
+
},
|
44
|
+
fontCustomSize: {
|
45
|
+
title: 'Benutzerdefinierte Schriftgröße',
|
46
|
+
label: 'Schriftgröße',
|
47
|
+
value: '48px'
|
48
|
+
}
|
49
|
+
},
|
23
50
|
es: {
|
24
51
|
fontsize: 'Tamaño de Fuente',
|
25
52
|
fontsizes: {
|
@@ -36,15 +63,20 @@
|
|
36
63
|
value: '48px'
|
37
64
|
}
|
38
65
|
},
|
39
|
-
|
40
|
-
fontsize: '
|
66
|
+
et: {
|
67
|
+
fontsize: 'Teksti suurus',
|
41
68
|
fontsizes: {
|
42
|
-
'x-small': '
|
43
|
-
'small': '
|
44
|
-
'medium': '
|
45
|
-
'large': '
|
46
|
-
'x-large': '
|
47
|
-
'custom': '
|
69
|
+
'x-small': 'Väga väike',
|
70
|
+
'small': 'Väike',
|
71
|
+
'medium': 'Tavaline',
|
72
|
+
'large': 'Suur',
|
73
|
+
'x-large': 'Väga suur',
|
74
|
+
'custom': 'Määra ise'
|
75
|
+
},
|
76
|
+
fontCustomSize: {
|
77
|
+
title: 'Kohandatud teksti suurus',
|
78
|
+
label: 'Teksti suurus',
|
79
|
+
value: '48px'
|
48
80
|
}
|
49
81
|
},
|
50
82
|
fr: {
|
@@ -63,19 +95,51 @@
|
|
63
95
|
value: '48px'
|
64
96
|
}
|
65
97
|
},
|
66
|
-
|
67
|
-
fontsize: '
|
98
|
+
hu: {
|
99
|
+
fontsize: 'Betű méret',
|
68
100
|
fontsizes: {
|
69
|
-
'x-small': '
|
70
|
-
'small': '
|
71
|
-
'medium': '
|
72
|
-
'large': '
|
73
|
-
'x-large': '
|
74
|
-
'custom': '
|
101
|
+
'x-small': 'Extra kicsi',
|
102
|
+
'small': 'Kicsi',
|
103
|
+
'medium': 'Normális',
|
104
|
+
'large': 'Nagy',
|
105
|
+
'x-large': 'Extra nagy',
|
106
|
+
'custom': 'Egyedi'
|
75
107
|
},
|
76
108
|
fontCustomSize: {
|
77
|
-
title: '
|
78
|
-
label: '
|
109
|
+
title: 'Egyedi betű méret',
|
110
|
+
label: 'Betű méret',
|
111
|
+
value: '48px'
|
112
|
+
}
|
113
|
+
},
|
114
|
+
it: {
|
115
|
+
fontsize: 'Dimensioni del testo',
|
116
|
+
fontsizes: {
|
117
|
+
'x-small': 'Molto piccolo',
|
118
|
+
'small': 'piccolo',
|
119
|
+
'regular': 'normale',
|
120
|
+
'large': 'grande',
|
121
|
+
'x-large': 'Molto grande',
|
122
|
+
'custom': 'Personalizzato'
|
123
|
+
},
|
124
|
+
fontCustomSize: {
|
125
|
+
title: 'Dimensioni del testo personalizzato',
|
126
|
+
label: 'Dimensioni del testo',
|
127
|
+
value: '48px'
|
128
|
+
}
|
129
|
+
},
|
130
|
+
ko: {
|
131
|
+
fontsize: '글꼴 크기',
|
132
|
+
fontsizes: {
|
133
|
+
'x-small': '아주 작게',
|
134
|
+
'small': '작게',
|
135
|
+
'medium': '보통',
|
136
|
+
'large': '크게',
|
137
|
+
'x-large': '아주 크게',
|
138
|
+
'custom': '사용자 지정'
|
139
|
+
},
|
140
|
+
fontCustomSize: {
|
141
|
+
title: '사용자 지정 글꼴 크기',
|
142
|
+
label: '글꼴 크기',
|
79
143
|
value: '48px'
|
80
144
|
}
|
81
145
|
},
|
@@ -90,33 +154,6 @@
|
|
90
154
|
'custom': 'Tilpasset'
|
91
155
|
}
|
92
156
|
},
|
93
|
-
tr: {
|
94
|
-
fontsize: 'Yazı Boyutu',
|
95
|
-
fontsizes: {
|
96
|
-
'x-small': 'Çok Küçük',
|
97
|
-
'small': 'Küçük',
|
98
|
-
'medium': 'Normal',
|
99
|
-
'large': 'Büyük',
|
100
|
-
'x-large': 'Çok Büyük',
|
101
|
-
'custom': 'Görenek'
|
102
|
-
}
|
103
|
-
},
|
104
|
-
zh_tw: {
|
105
|
-
fontsize: '字體大小',
|
106
|
-
fontsizes: {
|
107
|
-
'x-small': '最小',
|
108
|
-
'small': '小',
|
109
|
-
'medium': '中',
|
110
|
-
'large': '大',
|
111
|
-
'x-large': '最大',
|
112
|
-
'custom': '自訂大小',
|
113
|
-
},
|
114
|
-
fontCustomSize: {
|
115
|
-
title: '自訂義字體大小',
|
116
|
-
label: '字體大小',
|
117
|
-
value: '48px'
|
118
|
-
}
|
119
|
-
},
|
120
157
|
pt_br: {
|
121
158
|
fontsize: 'Tamanho da fonte',
|
122
159
|
fontsizes: {
|
@@ -133,35 +170,35 @@
|
|
133
170
|
value: '48px'
|
134
171
|
}
|
135
172
|
},
|
136
|
-
|
137
|
-
fontsize: '
|
173
|
+
tr: {
|
174
|
+
fontsize: 'Yazı boyutu',
|
138
175
|
fontsizes: {
|
139
|
-
'x-small': '
|
140
|
-
'small': '
|
141
|
-
'
|
142
|
-
'large': '
|
143
|
-
'x-large': '
|
144
|
-
'custom': '
|
176
|
+
'x-small': 'Çok küçük',
|
177
|
+
'small': 'Küçük',
|
178
|
+
'medium': 'Normal',
|
179
|
+
'large': 'Büyük',
|
180
|
+
'x-large': 'Çok büyük',
|
181
|
+
'custom': 'Özel'
|
145
182
|
},
|
146
183
|
fontCustomSize: {
|
147
|
-
title: '
|
148
|
-
label: '
|
184
|
+
title: 'Özel Yazı Boyutu',
|
185
|
+
label: 'Yazı Boyutu',
|
149
186
|
value: '48px'
|
150
187
|
}
|
151
188
|
},
|
152
|
-
|
153
|
-
fontsize: '
|
189
|
+
zh_tw: {
|
190
|
+
fontsize: '字體大小',
|
154
191
|
fontsizes: {
|
155
|
-
'x-small': '
|
156
|
-
'small': '
|
157
|
-
'medium': '
|
158
|
-
'large': '
|
159
|
-
'x-large': '
|
160
|
-
'custom': '
|
192
|
+
'x-small': '最小',
|
193
|
+
'small': '小',
|
194
|
+
'medium': '中',
|
195
|
+
'large': '大',
|
196
|
+
'x-large': '最大',
|
197
|
+
'custom': '自訂大小',
|
161
198
|
},
|
162
199
|
fontCustomSize: {
|
163
|
-
title: '
|
164
|
-
label: '
|
200
|
+
title: '自訂義字體大小',
|
201
|
+
label: '字體大小',
|
165
202
|
value: '48px'
|
166
203
|
}
|
167
204
|
},
|
@@ -201,17 +238,24 @@
|
|
201
238
|
function setFontSize(trumbowyg, size) {
|
202
239
|
trumbowyg.$ed.focus();
|
203
240
|
trumbowyg.saveRange();
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
241
|
+
|
242
|
+
// Temporary size
|
243
|
+
trumbowyg.execCmd('fontSize', '1');
|
244
|
+
|
245
|
+
// Find <font> elements that were added and change to <span> with chosen size
|
246
|
+
trumbowyg.$ed.find('font[size="1"]').replaceWith(function() {
|
247
|
+
return $('<span/>', {
|
248
|
+
css: { 'font-size': size },
|
249
|
+
html: this.innerHTML,
|
250
|
+
});
|
251
|
+
});
|
252
|
+
|
253
|
+
// Remove and leftover <span> elements
|
254
|
+
$(trumbowyg.range.startContainer.parentElement).find('span[style=""]').contents().unwrap();
|
255
|
+
|
214
256
|
trumbowyg.restoreRange();
|
257
|
+
trumbowyg.syncCode();
|
258
|
+
trumbowyg.$c.trigger('tbwchange');
|
215
259
|
}
|
216
260
|
|
217
261
|
function buildDropdown(trumbowyg) {
|
data/app/assets/javascripts/activeadmin/trumbowyg/plugins/fontsize/trumbowyg.fontsize.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e){"use strict";
|
1
|
+
!function(e){"use strict";e.extend(!0,e.trumbowyg,{langs:{en:{fontsize:"Font size",fontsizes:{"x-small":"Extra small",small:"Small",medium:"Regular",large:"Large","x-large":"Extra large",custom:"Custom"},fontCustomSize:{title:"Custom Font Size",label:"Font Size",value:"48px"}},da:{fontsize:"Skriftstørrelse",fontsizes:{"x-small":"Ekstra lille",small:"Lille",medium:"Normal",large:"Stor","x-large":"Ekstra stor",custom:"Brugerdefineret"}},de:{fontsize:"Schriftgröße",fontsizes:{"x-small":"Sehr klein",small:"Klein",medium:"Normal",large:"Groß","x-large":"Sehr groß",custom:"Benutzerdefiniert"},fontCustomSize:{title:"Benutzerdefinierte Schriftgröße",label:"Schriftgröße",value:"48px"}},es:{fontsize:"Tamaño de Fuente",fontsizes:{"x-small":"Extra pequeña",small:"Pegueña",medium:"Regular",large:"Grande","x-large":"Extra Grande",custom:"Customizada"},fontCustomSize:{title:"Tamaño de Fuente Customizada",label:"Tamaño de Fuente",value:"48px"}},et:{fontsize:"Teksti suurus",fontsizes:{"x-small":"Väga väike",small:"Väike",medium:"Tavaline",large:"Suur","x-large":"Väga suur",custom:"Määra ise"},fontCustomSize:{title:"Kohandatud teksti suurus",label:"Teksti suurus",value:"48px"}},fr:{fontsize:"Taille de la police",fontsizes:{"x-small":"Très petit",small:"Petit",medium:"Normal",large:"Grand","x-large":"Très grand",custom:"Taille personnalisée"},fontCustomSize:{title:"Taille de police personnalisée",label:"Taille de la police",value:"48px"}},hu:{fontsize:"Betű méret",fontsizes:{"x-small":"Extra kicsi",small:"Kicsi",medium:"Normális",large:"Nagy","x-large":"Extra nagy",custom:"Egyedi"},fontCustomSize:{title:"Egyedi betű méret",label:"Betű méret",value:"48px"}},it:{fontsize:"Dimensioni del testo",fontsizes:{"x-small":"Molto piccolo",small:"piccolo",regular:"normale",large:"grande","x-large":"Molto grande",custom:"Personalizzato"},fontCustomSize:{title:"Dimensioni del testo personalizzato",label:"Dimensioni del testo",value:"48px"}},ko:{fontsize:"글꼴 크기",fontsizes:{"x-small":"아주 작게",small:"작게",medium:"보통",large:"크게","x-large":"아주 크게",custom:"사용자 지정"},fontCustomSize:{title:"사용자 지정 글꼴 크기",label:"글꼴 크기",value:"48px"}},nl:{fontsize:"Lettergrootte",fontsizes:{"x-small":"Extra klein",small:"Klein",medium:"Normaal",large:"Groot","x-large":"Extra groot",custom:"Tilpasset"}},pt_br:{fontsize:"Tamanho da fonte",fontsizes:{"x-small":"Extra pequeno",small:"Pequeno",regular:"Médio",large:"Grande","x-large":"Extra grande",custom:"Personalizado"},fontCustomSize:{title:"Tamanho de Fonte Personalizado",label:"Tamanho de Fonte",value:"48px"}},tr:{fontsize:"Yazı boyutu",fontsizes:{"x-small":"Çok küçük",small:"Küçük",medium:"Normal",large:"Büyük","x-large":"Çok büyük",custom:"Özel"},fontCustomSize:{title:"Özel Yazı Boyutu",label:"Yazı Boyutu",value:"48px"}},zh_tw:{fontsize:"字體大小",fontsizes:{"x-small":"最小",small:"小",medium:"中",large:"大","x-large":"最大",custom:"自訂大小"},fontCustomSize:{title:"自訂義字體大小",label:"字體大小",value:"48px"}}}});var t={sizeList:["x-small","small","medium","large","x-large"],allowCustomSize:!0};function l(t,l){t.$ed.focus(),t.saveRange(),t.execCmd("fontSize","1"),t.$ed.find('font[size="1"]').replaceWith((function(){return e("<span/>",{css:{"font-size":l},html:this.innerHTML})})),e(t.range.startContainer.parentElement).find('span[style=""]').contents().unwrap(),t.restoreRange(),t.syncCode(),t.$c.trigger("tbwchange")}function a(t){var a=[];if(e.each(t.o.plugins.fontsize.sizeList,(function(e,s){t.addBtnDef("fontsize_"+s,{text:'<span style="font-size: '+s+';">'+(t.lang.fontsizes[s]||s)+"</span>",hasIcon:!1,fn:function(){l(t,s)}}),a.push("fontsize_"+s)})),t.o.plugins.fontsize.allowCustomSize){var s="fontsize_custom",o={fn:function(){t.openModalInsert(t.lang.fontCustomSize.title,{size:{label:t.lang.fontCustomSize.label,value:t.lang.fontCustomSize.value}},(function(e){return l(t,e.size),!0}))},text:'<span style="font-size: medium;">'+t.lang.fontsizes.custom+"</span>",hasIcon:!1};t.addBtnDef(s,o),a.push(s)}return a}e.extend(!0,e.trumbowyg,{plugins:{fontsize:{init:function(l){l.o.plugins.fontsize=e.extend({},t,l.o.plugins.fontsize||{}),l.addBtnDef("fontsize",{dropdown:a(l)})}}}})}(jQuery);
|
@@ -7,14 +7,23 @@
|
|
7
7
|
en: {
|
8
8
|
giphy: 'Insert GIF',
|
9
9
|
},
|
10
|
+
et: {
|
11
|
+
giphy: 'Sisesta GIF',
|
12
|
+
},
|
10
13
|
fr: {
|
11
14
|
giphy: 'Insérer un GIF',
|
12
15
|
},
|
16
|
+
hu: {
|
17
|
+
giphy: 'GIF beszúrás',
|
18
|
+
},
|
19
|
+
tr: {
|
20
|
+
giphy: 'GIF ekle',
|
21
|
+
},
|
13
22
|
// jshint camelcase:true
|
14
23
|
}
|
15
24
|
});
|
16
25
|
|
17
|
-
var giphyLogo = '<svg viewBox="0 0 231 53" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M48.32 22.386c0-1.388-.252-1.892-1.767-1.85-3.448.126-6.855.042-10.303.042H25.443c-.927 0-1.346.211-1.305 1.22.085 2.86.085 5.72.043 8.58 0 .883.252 1.169 1.169 1.135 2.018-.084 3.995-.042 6.014 0 1.64 0 4.164-.546 4.752.252.841 1.169.421 3.364.337 5.089-.043.547-.547 1.304-1.094 1.598-2.692 1.556-5.678 2.018-8.747 1.892-5.342-.21-9.336-2.439-11.481-7.527-1.388-3.364-1.725-6.855-1.01-10.43 1.01-4.963 3.407-8.747 8.58-10.051 5.215-1.305 10.136-.547 14.467 2.817 1.219.967 1.798.715 2.691-.294 1.514-1.724 3.154-3.322 4.753-4.963 1.892-1.933 1.892-1.892-.169-3.7C38.429.813 31.238-.617 23.5.224 12.818 1.393 5.248 6.658 1.59 17.045-.177 22.008-.428 27.097.623 32.227c1.682 7.914 5.551 14.12 13.289 17.368 6.898 2.901 14.046 3.448 21.321 1.598 4.331-1.093 8.411-2.608 11.354-6.223 1.136-1.388 1.725-2.902 1.682-4.71l.043-17.873.008-.001zm125.153 3.784l.042-23.046c0-1.136-.168-1.598-1.472-1.556a238.02 238.02 0 0 1-11.017 0c-1.136-.042-1.439.337-1.439 1.439v15.645c0 1.345-.421 1.556-1.641 1.556a422.563 422.563 0 0 0-14.593 0c-1.262.042-1.472-.421-1.439-1.556l.043-15.813c0-.926-.169-1.304-1.17-1.262h-11.513c-.927 0-1.304.169-1.304 1.22v46.764c0 .967.252 1.262 1.219 1.262h11.512c1.169.042 1.262-.462 1.262-1.388l-.042-15.644c0-1.053.251-1.346 1.304-1.346h15.14c1.22 0 1.388.421 1.388 1.472l-.042 15.477c0 1.093.21 1.472 1.388 1.439 3.615-.085 7.233-.085 10.807 0 1.304.042 1.598-.337 1.598-1.598l-.042-23.047.011-.018zM106.565 1.654c-8.369-.211-16.728-.126-25.065-.211-1.346 0-1.767.337-1.767 1.724l.043 23.004v23.215c0 1.009.168 1.439 1.304 1.387a271.22 271.22 0 0 1 11.691 0c1.094 0 1.346-.336 1.346-1.345l-.042-10.64c0-1.052.294-1.345 1.345-1.345 3.322.042 6.645.085 9.967-.085 4.407-.21 8.621-1.219 12.111-4.12 5.551-4.584 7.613-12.701 5.131-20.061-2.313-6.561-8.747-11.354-16.064-11.522v-.001zm-3.028 24.013c-2.818.042-5.594-.043-8.411.042-1.169.042-1.439-.378-1.345-1.439.084-1.556 0-3.069 0-4.626v-5.131c-.043-.841.251-1.094 1.052-1.052 2.986.042 5.929-.085 8.915.042 3.616.126 5.887 2.692 5.846 6.266-.126 3.658-2.313 5.846-6.055 5.887l-.002.011zM229.699 1.569c-4.458 0-8.915-.042-13.415.043-.629 0-1.472.503-1.85 1.052a505.695 505.695 0 0 0-8.957 14.214c-.884 1.472-1.22 1.169-1.977-.084l-8.496-14.089c-.503-.841-1.052-1.136-2.018-1.136l-13.078.043c-.462 0-.967.125-1.439.21.21.378.378.799.629 1.169l17.412 27.167c.462.715.715 1.682.757 2.524v16.653c0 1.052.168 1.514 1.388 1.472 3.784-.084 7.57-.084 11.354 0 1.136.043 1.304-.377 1.304-1.387l-.042-8.58c0-2.734-.084-5.51.042-8.243.043-.926.337-1.933.841-2.649l18.167-27.041c.252-.337.337-.758.547-1.17a3.636 3.636 0 0 0-1.169-.168zM70.104 2.661c0-1.009-.294-1.219-1.262-1.219H57.69c-1.262-.043-1.472.377-1.472 1.513l.042 23.004v23.34c0 1.053.126 1.514 1.346 1.473 3.7-.085 7.444-.043 11.152 0 .966 0 1.387-.085 1.387-1.262l-.042-46.857.001.008z" fill="currentColor" fill-rule="nonzero"/></svg>';
|
26
|
+
var giphyLogo = '<svg viewBox="0 0 231 53" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M48.32 22.386c0-1.388-.252-1.892-1.767-1.85-3.448.126-6.855.042-10.303.042H25.443c-.927 0-1.346.211-1.305 1.22.085 2.86.085 5.72.043 8.58 0 .883.252 1.169 1.169 1.135 2.018-.084 3.995-.042 6.014 0 1.64 0 4.164-.546 4.752.252.841 1.169.421 3.364.337 5.089-.043.547-.547 1.304-1.094 1.598-2.692 1.556-5.678 2.018-8.747 1.892-5.342-.21-9.336-2.439-11.481-7.527-1.388-3.364-1.725-6.855-1.01-10.43 1.01-4.963 3.407-8.747 8.58-10.051 5.215-1.305 10.136-.547 14.467 2.817 1.219.967 1.798.715 2.691-.294 1.514-1.724 3.154-3.322 4.753-4.963 1.892-1.933 1.892-1.892-.169-3.7C38.429.813 31.238-.617 23.5.224 12.818 1.393 5.248 6.658 1.59 17.045-.177 22.008-.428 27.097.623 32.227c1.682 7.914 5.551 14.12 13.289 17.368 6.898 2.901 14.046 3.448 21.321 1.598 4.331-1.093 8.411-2.608 11.354-6.223 1.136-1.388 1.725-2.902 1.682-4.71l.043-17.873.008-.001zm125.153 3.784l.042-23.046c0-1.136-.168-1.598-1.472-1.556a238.02 238.02 0 0 1-11.017 0c-1.136-.042-1.439.337-1.439 1.439v15.645c0 1.345-.421 1.556-1.641 1.556a422.563 422.563 0 0 0-14.593 0c-1.262.042-1.472-.421-1.439-1.556l.043-15.813c0-.926-.169-1.304-1.17-1.262h-11.513c-.927 0-1.304.169-1.304 1.22v46.764c0 .967.252 1.262 1.219 1.262h11.512c1.169.042 1.262-.462 1.262-1.388l-.042-15.644c0-1.053.251-1.346 1.304-1.346h15.14c1.22 0 1.388.421 1.388 1.472l-.042 15.477c0 1.093.21 1.472 1.388 1.439 3.615-.085 7.233-.085 10.807 0 1.304.042 1.598-.337 1.598-1.598l-.042-23.047.011-.018zM106.565 1.654c-8.369-.211-16.728-.126-25.065-.211-1.346 0-1.767.337-1.767 1.724l.043 23.004v23.215c0 1.009.168 1.439 1.304 1.387a271.22 271.22 0 0 1 11.691 0c1.094 0 1.346-.336 1.346-1.345l-.042-10.64c0-1.052.294-1.345 1.345-1.345 3.322.042 6.645.085 9.967-.085 4.407-.21 8.621-1.219 12.111-4.12 5.551-4.584 7.613-12.701 5.131-20.061-2.313-6.561-8.747-11.354-16.064-11.522v-.001zm-3.028 24.013c-2.818.042-5.594-.043-8.411.042-1.169.042-1.439-.378-1.345-1.439.084-1.556 0-3.069 0-4.626v-5.131c-.043-.841.251-1.094 1.052-1.052 2.986.042 5.929-.085 8.915.042 3.616.126 5.887 2.692 5.846 6.266-.126 3.658-2.313 5.846-6.055 5.887l-.002.011zM229.699 1.569c-4.458 0-8.915-.042-13.415.043-.629 0-1.472.503-1.85 1.052a505.695 505.695 0 0 0-8.957 14.214c-.884 1.472-1.22 1.169-1.977-.084l-8.496-14.089c-.503-.841-1.052-1.136-2.018-1.136l-13.078.043c-.462 0-.967.125-1.439.21.21.378.378.799.629 1.169l17.412 27.167c.462.715.715 1.682.757 2.524v16.653c0 1.052.168 1.514 1.388 1.472 3.784-.084 7.57-.084 11.354 0 1.136.043 1.304-.377 1.304-1.387l-.042-8.58c0-2.734-.084-5.51.042-8.243.043-.926.337-1.933.841-2.649l18.167-27.041c.252-.337.337-.758.547-1.17a3.636 3.636 0 0 0-1.169-.168zM70.104 2.661c0-1.009-.294-1.219-1.262-1.219H57.69c-1.262-.043-1.472.377-1.472 1.513l.042 23.004v23.34c0 1.053.126 1.514 1.346 1.473 3.7-.085 7.444-.043 11.152 0 .966 0 1.387-.085 1.387-1.262l-.042-46.857.001.008z" fill="currentColor" fill-rule="nonzero"/></svg>'; // jshint ignore:line
|
18
27
|
|
19
28
|
var CANCEL_EVENT = 'tbwcancel';
|
20
29
|
|
@@ -1 +1 @@
|
|
1
|
-
!function(i){"use strict";
|
1
|
+
!function(i){"use strict";i.extend(!0,i.trumbowyg,{langs:{en:{giphy:"Insert GIF"},et:{giphy:"Sisesta GIF"},fr:{giphy:"Insérer un GIF"},hu:{giphy:"GIF beszúrás"},tr:{giphy:"GIF ekle"}}});var e="tbwcancel";function n(e,n,t,l){var o=(n.width()-20)/3,a=e.data.filter((function(i){return""!==i.images.downsized.url})).map((function(i){var e=i.images.downsized,n=e.height/e.width;return'<div class="img-container"><img src='+e.url+' width="'+o+'" height="'+n*o+'" loading="lazy" onload="this.classList.add(\'tbw-loaded\')"/></div>'})).join("");if(!0===l){if(0===a.length){if(i("."+t.o.prefix+"giphy-no-result",n).length>0)return;a='<img class="'+t.o.prefix+'giphy-no-result" src="'+t.o.plugins.giphy.noResultGifUrl+'"/>'}n.empty()}n.append(a),i("img",n).on("click",(function(){t.restoreRange(),t.execCmd("insertImage",i(this).attr("src"),!1,!0),i("img",n).off(),t.closeModal()}))}var t={rating:"g",apiKey:null,throttleDelay:300,noResultGifUrl:"https://media.giphy.com/media/2Faz9FbRzmwxY0pZS/giphy.gif"};i.extend(!0,i.trumbowyg,{plugins:{giphy:{init:function(l){l.o.plugins.giphy=i.extend({},t,l.o.plugins.giphy||{}),l.addBtnDef("giphy",{fn:function(){if(null===l.o.plugins.giphy.apiKey)throw new Error("You must set a Giphy API Key");var t="https://api.giphy.com/v1/gifs/search?api_key="+l.o.plugins.giphy.apiKey+"&rating="+l.o.plugins.giphy.rating,o=t.replace("/search","/trending"),a={abort:function(){}},c=l.o.prefix,r='<input name="" class="'+c+'giphy-search" placeholder="Search a GIF" autofocus="autofocus">'+('<button class="'+c+'giphy-close" title="'+l.lang.close+'"><svg><use xlink:href="'+l.svgPath+"#"+c+'close"/></svg></button>')+('<div class="'+c+'powered-by-giphy"><span>Powered by</span><svg viewBox="0 0 231 53" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M48.32 22.386c0-1.388-.252-1.892-1.767-1.85-3.448.126-6.855.042-10.303.042H25.443c-.927 0-1.346.211-1.305 1.22.085 2.86.085 5.72.043 8.58 0 .883.252 1.169 1.169 1.135 2.018-.084 3.995-.042 6.014 0 1.64 0 4.164-.546 4.752.252.841 1.169.421 3.364.337 5.089-.043.547-.547 1.304-1.094 1.598-2.692 1.556-5.678 2.018-8.747 1.892-5.342-.21-9.336-2.439-11.481-7.527-1.388-3.364-1.725-6.855-1.01-10.43 1.01-4.963 3.407-8.747 8.58-10.051 5.215-1.305 10.136-.547 14.467 2.817 1.219.967 1.798.715 2.691-.294 1.514-1.724 3.154-3.322 4.753-4.963 1.892-1.933 1.892-1.892-.169-3.7C38.429.813 31.238-.617 23.5.224 12.818 1.393 5.248 6.658 1.59 17.045-.177 22.008-.428 27.097.623 32.227c1.682 7.914 5.551 14.12 13.289 17.368 6.898 2.901 14.046 3.448 21.321 1.598 4.331-1.093 8.411-2.608 11.354-6.223 1.136-1.388 1.725-2.902 1.682-4.71l.043-17.873.008-.001zm125.153 3.784l.042-23.046c0-1.136-.168-1.598-1.472-1.556a238.02 238.02 0 0 1-11.017 0c-1.136-.042-1.439.337-1.439 1.439v15.645c0 1.345-.421 1.556-1.641 1.556a422.563 422.563 0 0 0-14.593 0c-1.262.042-1.472-.421-1.439-1.556l.043-15.813c0-.926-.169-1.304-1.17-1.262h-11.513c-.927 0-1.304.169-1.304 1.22v46.764c0 .967.252 1.262 1.219 1.262h11.512c1.169.042 1.262-.462 1.262-1.388l-.042-15.644c0-1.053.251-1.346 1.304-1.346h15.14c1.22 0 1.388.421 1.388 1.472l-.042 15.477c0 1.093.21 1.472 1.388 1.439 3.615-.085 7.233-.085 10.807 0 1.304.042 1.598-.337 1.598-1.598l-.042-23.047.011-.018zM106.565 1.654c-8.369-.211-16.728-.126-25.065-.211-1.346 0-1.767.337-1.767 1.724l.043 23.004v23.215c0 1.009.168 1.439 1.304 1.387a271.22 271.22 0 0 1 11.691 0c1.094 0 1.346-.336 1.346-1.345l-.042-10.64c0-1.052.294-1.345 1.345-1.345 3.322.042 6.645.085 9.967-.085 4.407-.21 8.621-1.219 12.111-4.12 5.551-4.584 7.613-12.701 5.131-20.061-2.313-6.561-8.747-11.354-16.064-11.522v-.001zm-3.028 24.013c-2.818.042-5.594-.043-8.411.042-1.169.042-1.439-.378-1.345-1.439.084-1.556 0-3.069 0-4.626v-5.131c-.043-.841.251-1.094 1.052-1.052 2.986.042 5.929-.085 8.915.042 3.616.126 5.887 2.692 5.846 6.266-.126 3.658-2.313 5.846-6.055 5.887l-.002.011zM229.699 1.569c-4.458 0-8.915-.042-13.415.043-.629 0-1.472.503-1.85 1.052a505.695 505.695 0 0 0-8.957 14.214c-.884 1.472-1.22 1.169-1.977-.084l-8.496-14.089c-.503-.841-1.052-1.136-2.018-1.136l-13.078.043c-.462 0-.967.125-1.439.21.21.378.378.799.629 1.169l17.412 27.167c.462.715.715 1.682.757 2.524v16.653c0 1.052.168 1.514 1.388 1.472 3.784-.084 7.57-.084 11.354 0 1.136.043 1.304-.377 1.304-1.387l-.042-8.58c0-2.734-.084-5.51.042-8.243.043-.926.337-1.933.841-2.649l18.167-27.041c.252-.337.337-.758.547-1.17a3.636 3.636 0 0 0-1.169-.168zM70.104 2.661c0-1.009-.294-1.219-1.262-1.219H57.69c-1.262-.043-1.472.377-1.472 1.513l.042 23.004v23.34c0 1.053.126 1.514 1.346 1.473 3.7-.085 7.444-.043 11.152 0 .966 0 1.387-.085 1.387-1.262l-.042-46.857.001.008z" fill="currentColor" fill-rule="nonzero"/></svg></div>')+'<div class="'+c+'giphy-modal-scroll"><div class="'+c+'giphy-modal"></div></div>';l.openModal(null,r,!1).one(e,(function(){try{a.abort()}catch(i){}l.closeModal()}));var s=i("."+c+"giphy-search"),p=i("."+c+"giphy-close"),g=i("."+c+"giphy-modal"),u=function(){navigator.onLine||i("."+c+"giphy-offline",g).length||(g.empty(),g.append('<p class="'+c+'giphy-offline">You are offline</p>'))};i.ajax({url:o,dataType:"json",success:function(i){n(i,g,l,!0)},error:u});var h,d,y,f,v=(h=function(){var e=s.val();if(0!==e.length){try{a.abort()}catch(i){}a=i.ajax({url:t+"&q="+encodeURIComponent(e),dataType:"json",success:function(i){n(i,g,l,!0)},error:u})}},d=l.o.plugins.giphy.throttleDelay,function(){var i=this,e=+new Date,n=arguments;y&&e<y+d?(clearTimeout(f),f=setTimeout((function(){y=e,h.apply(i,n)}),d)):(y=e,h.apply(i,n))});s.on("input",v),s.focus(),p.one("click",(function(){g.trigger(e)}))}})}}}})}(jQuery);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Trumbowyg v2.
|
2
|
+
* Trumbowyg v2.25.1 - A lightweight WYSIWYG editor
|
3
3
|
* Trumbowyg plugin stylesheet
|
4
4
|
* ------------------------
|
5
5
|
* @link http://alex-d.github.io/Trumbowyg
|
@@ -10,7 +10,10 @@
|
|
10
10
|
*/
|
11
11
|
|
12
12
|
.trumbowyg-giphy-button svg {
|
13
|
-
transform: scale(1.22);
|
13
|
+
-webkit-transform: scale(1.22);
|
14
|
+
-ms-transform: scale(1.22);
|
15
|
+
-o-transform: scale(1.22);
|
16
|
+
transform: scale(1.22); }
|
14
17
|
|
15
18
|
.trumbowyg-giphy-search {
|
16
19
|
display: block;
|
@@ -61,10 +64,12 @@
|
|
61
64
|
|
62
65
|
.trumbowyg-giphy-modal {
|
63
66
|
padding: 0 5%;
|
64
|
-
-
|
65
|
-
|
66
|
-
|
67
|
-
|
67
|
+
-webkit-columns: 3;
|
68
|
+
-moz-columns: 3;
|
69
|
+
columns: 3;
|
70
|
+
-webkit-column-gap: 10px;
|
71
|
+
-moz-column-gap: 10px;
|
72
|
+
column-gap: 10px; }
|
68
73
|
.trumbowyg-giphy-modal .trumbowyg-giphy-no-result {
|
69
74
|
width: 250%;
|
70
75
|
margin: 13% 0 0 29%; }
|
@@ -83,6 +88,8 @@
|
|
83
88
|
width: 100%;
|
84
89
|
cursor: pointer;
|
85
90
|
opacity: 0;
|
91
|
+
-webkit-transition: opacity 150ms;
|
92
|
+
-o-transition: opacity 150ms;
|
86
93
|
transition: opacity 150ms; }
|
87
94
|
.trumbowyg-giphy-modal .img-container img:hover, .trumbowyg-giphy-modal .img-container img:focus {
|
88
95
|
border: #2ecc71 solid 3px; }
|
@@ -1,2 +1,2 @@
|
|
1
|
-
/** Trumbowyg v2.
|
2
|
-
.trumbowyg-giphy-button svg{transform:scale(1.22)}.trumbowyg-giphy-search{display:block;width:80%;margin:5%;padding-left:10px;padding-right:150px}.trumbowyg-giphy-close{position:absolute;top:calc(5% + 8px);right:calc(5% - 2px);width:30px;height:30px;background:0 0;border:1px solid transparent}.trumbowyg-giphy-close:focus,.trumbowyg-giphy-close:hover{outline:0;background:#ecf0f1}.trumbowyg-giphy-close:focus{border-color:rgba(0,0,0,.3)}.trumbowyg-powered-by-giphy{position:absolute;top:calc(5% + 12px);right:calc(15% + 10px);pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.trumbowyg-powered-by-giphy span{text-transform:uppercase;font-weight:700;font-size:10px;opacity:.6}.trumbowyg-powered-by-giphy svg{width:66px;height:15px;vertical-align:bottom;margin-left:6px;opacity:.45}.trumbowyg-giphy-modal-scroll{overflow:auto;overflow-x:hidden;height:240px}.trumbowyg-giphy-modal{padding:0 5%;-moz-columns:3;columns:3;-moz-column-gap:10px;column-gap:10px}.trumbowyg-giphy-modal .trumbowyg-giphy-no-result{width:250%;margin:13% 0 0 29%}.trumbowyg-giphy-modal .trumbowyg-giphy-offline{font-size:18px;width:305%;height:600px;margin-top:95px;text-align:center}.trumbowyg-giphy-modal .img-container{width:100%;margin-bottom:10px;background-color:#ecf0f1}.trumbowyg-giphy-modal .img-container img{width:100%;cursor:pointer;opacity:0;transition:opacity 150ms}.trumbowyg-giphy-modal .img-container img:focus,.trumbowyg-giphy-modal .img-container img:hover{border:3px solid #2ecc71}.trumbowyg-giphy-modal .img-container img.tbw-loaded{opacity:1}
|
1
|
+
/** Trumbowyg v2.25.1 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */
|
2
|
+
.trumbowyg-giphy-button svg{-webkit-transform:scale(1.22);-ms-transform:scale(1.22);-o-transform:scale(1.22);transform:scale(1.22)}.trumbowyg-giphy-search{display:block;width:80%;margin:5%;padding-left:10px;padding-right:150px}.trumbowyg-giphy-close{position:absolute;top:calc(5% + 8px);right:calc(5% - 2px);width:30px;height:30px;background:0 0;border:1px solid transparent}.trumbowyg-giphy-close:focus,.trumbowyg-giphy-close:hover{outline:0;background:#ecf0f1}.trumbowyg-giphy-close:focus{border-color:rgba(0,0,0,.3)}.trumbowyg-powered-by-giphy{position:absolute;top:calc(5% + 12px);right:calc(15% + 10px);pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.trumbowyg-powered-by-giphy span{text-transform:uppercase;font-weight:700;font-size:10px;opacity:.6}.trumbowyg-powered-by-giphy svg{width:66px;height:15px;vertical-align:bottom;margin-left:6px;opacity:.45}.trumbowyg-giphy-modal-scroll{overflow:auto;overflow-x:hidden;height:240px}.trumbowyg-giphy-modal{padding:0 5%;-webkit-columns:3;-moz-columns:3;columns:3;-webkit-column-gap:10px;-moz-column-gap:10px;column-gap:10px}.trumbowyg-giphy-modal .trumbowyg-giphy-no-result{width:250%;margin:13% 0 0 29%}.trumbowyg-giphy-modal .trumbowyg-giphy-offline{font-size:18px;width:305%;height:600px;margin-top:95px;text-align:center}.trumbowyg-giphy-modal .img-container{width:100%;margin-bottom:10px;background-color:#ecf0f1}.trumbowyg-giphy-modal .img-container img{width:100%;cursor:pointer;opacity:0;-webkit-transition:opacity 150ms;-o-transition:opacity 150ms;transition:opacity 150ms}.trumbowyg-giphy-modal .img-container img:focus,.trumbowyg-giphy-modal .img-container img:hover{border:3px solid #2ecc71}.trumbowyg-giphy-modal .img-container img.tbw-loaded{opacity:1}
|
@@ -3,47 +3,252 @@
|
|
3
3
|
'use strict';
|
4
4
|
|
5
5
|
// My plugin default options
|
6
|
-
var defaultOptions = {
|
6
|
+
var defaultOptions = {
|
7
|
+
enableLineHighlight: true,
|
8
|
+
languageNames: {
|
9
|
+
// For updated list of languages
|
10
|
+
// see https://github.com/PrismJS/prism/blob/master/plugins/show-language/prism-show-language.js
|
11
|
+
'html': 'HTML',
|
12
|
+
'xml': 'XML',
|
13
|
+
'svg': 'SVG',
|
14
|
+
'mathml': 'MathML',
|
15
|
+
'ssml': 'SSML',
|
16
|
+
'css': 'CSS',
|
17
|
+
'clike': 'C-like',
|
18
|
+
'js': 'JavaScript',
|
19
|
+
'abap': 'ABAP',
|
20
|
+
'abnf': 'Augmented Backus–Naur form',
|
21
|
+
'al': 'AL',
|
22
|
+
'antlr4': 'ANTLR4',
|
23
|
+
'g4': 'ANTLR4',
|
24
|
+
'apacheconf': 'Apache Configuration',
|
25
|
+
'apl': 'APL',
|
26
|
+
'aql': 'AQL',
|
27
|
+
'arff': 'ARFF',
|
28
|
+
'asciidoc': 'AsciiDoc',
|
29
|
+
'adoc': 'AsciiDoc',
|
30
|
+
'asm6502': '6502 Assembly',
|
31
|
+
'aspnet': 'ASP.NET (C#)',
|
32
|
+
'autohotkey': 'AutoHotkey',
|
33
|
+
'autoit': 'AutoIt',
|
34
|
+
'basic': 'BASIC',
|
35
|
+
'bbcode': 'BBcode',
|
36
|
+
'bnf': 'Backus–Naur form',
|
37
|
+
'rbnf': 'Routing Backus–Naur form',
|
38
|
+
'conc': 'Concurnas',
|
39
|
+
'csharp': 'C#',
|
40
|
+
'cs': 'C#',
|
41
|
+
'dotnet': 'C#',
|
42
|
+
'cpp': 'C++',
|
43
|
+
'cil': 'CIL',
|
44
|
+
'coffee': 'CoffeeScript',
|
45
|
+
'cmake': 'CMake',
|
46
|
+
'csp': 'Content-Security-Policy',
|
47
|
+
'css-extras': 'CSS Extras',
|
48
|
+
'dax': 'DAX',
|
49
|
+
'django': 'Django/Jinja2',
|
50
|
+
'jinja2': 'Django/Jinja2',
|
51
|
+
'dns-zone-file': 'DNS zone file',
|
52
|
+
'dns-zone': 'DNS zone file',
|
53
|
+
'dockerfile': 'Docker',
|
54
|
+
'ebnf': 'Extended Backus–Naur form',
|
55
|
+
'ejs': 'EJS',
|
56
|
+
'etlua': 'Embedded Lua templating',
|
57
|
+
'erb': 'ERB',
|
58
|
+
'excel-formula': 'Excel Formula',
|
59
|
+
'xlsx': 'Excel Formula',
|
60
|
+
'xls': 'Excel Formula',
|
61
|
+
'fsharp': 'F#',
|
62
|
+
'firestore-security-rules': 'Firestore security rules',
|
63
|
+
'ftl': 'FreeMarker Template Language',
|
64
|
+
'gcode': 'G-code',
|
65
|
+
'gdscript': 'GDScript',
|
66
|
+
'gedcom': 'GEDCOM',
|
67
|
+
'glsl': 'GLSL',
|
68
|
+
'gml': 'GameMaker Language',
|
69
|
+
'gamemakerlanguage': 'GameMaker Language',
|
70
|
+
'graphql': 'GraphQL',
|
71
|
+
'hs': 'Haskell',
|
72
|
+
'hcl': 'HCL',
|
73
|
+
'hlsl': 'HLSL',
|
74
|
+
'http': 'HTTP',
|
75
|
+
'hpkp': 'HTTP Public-Key-Pins',
|
76
|
+
'hsts': 'HTTP Strict-Transport-Security',
|
77
|
+
'ichigojam': 'IchigoJam',
|
78
|
+
'iecst': 'Structured Text (IEC 61131-3)',
|
79
|
+
'inform7': 'Inform 7',
|
80
|
+
'javadoc': 'JavaDoc',
|
81
|
+
'javadoclike': 'JavaDoc-like',
|
82
|
+
'javastacktrace': 'Java stack trace',
|
83
|
+
'jq': 'JQ',
|
84
|
+
'jsdoc': 'JSDoc',
|
85
|
+
'js-extras': 'JS Extras',
|
86
|
+
'js-templates': 'JS Templates',
|
87
|
+
'json': 'JSON',
|
88
|
+
'jsonp': 'JSONP',
|
89
|
+
'json5': 'JSON5',
|
90
|
+
'latex': 'LaTeX',
|
91
|
+
'tex': 'TeX',
|
92
|
+
'context': 'ConTeXt',
|
93
|
+
'lilypond': 'LilyPond',
|
94
|
+
'ly': 'LilyPond',
|
95
|
+
'emacs': 'Lisp',
|
96
|
+
'elisp': 'Lisp',
|
97
|
+
'emacs-lisp': 'Lisp',
|
98
|
+
'llvm': 'LLVM IR',
|
99
|
+
'lolcode': 'LOLCODE',
|
100
|
+
'md': 'Markdown',
|
101
|
+
'markup-templating': 'Markup templating',
|
102
|
+
'matlab': 'MATLAB',
|
103
|
+
'mel': 'MEL',
|
104
|
+
'moon': 'MoonScript',
|
105
|
+
'n1ql': 'N1QL',
|
106
|
+
'n4js': 'N4JS',
|
107
|
+
'n4jsd': 'N4JS',
|
108
|
+
'nand2tetris-hdl': 'Nand To Tetris HDL',
|
109
|
+
'nasm': 'NASM',
|
110
|
+
'neon': 'NEON',
|
111
|
+
'nginx': 'nginx',
|
112
|
+
'nsis': 'NSIS',
|
113
|
+
'objectivec': 'Objective-C',
|
114
|
+
'objc': 'Objective-C',
|
115
|
+
'ocaml': 'OCaml',
|
116
|
+
'opencl': 'OpenCL',
|
117
|
+
'parigp': 'PARI/GP',
|
118
|
+
'objectpascal': 'Object Pascal',
|
119
|
+
'pcaxis': 'PC-Axis',
|
120
|
+
'px': 'PC-Axis',
|
121
|
+
'peoplecode': 'PeopleCode',
|
122
|
+
'pcode': 'PeopleCode',
|
123
|
+
'php': 'PHP',
|
124
|
+
'phpdoc': 'PHPDoc',
|
125
|
+
'php-extras': 'PHP Extras',
|
126
|
+
'plsql': 'PL/SQL',
|
127
|
+
'powerquery': 'PowerQuery',
|
128
|
+
'pq': 'PowerQuery',
|
129
|
+
'mscript': 'PowerQuery',
|
130
|
+
'powershell': 'PowerShell',
|
131
|
+
'properties': '.properties',
|
132
|
+
'protobuf': 'Protocol Buffers',
|
133
|
+
'py': 'Python',
|
134
|
+
'q': 'Q (kdb+ database)',
|
135
|
+
'qml': 'QML',
|
136
|
+
'rkt': 'Racket',
|
137
|
+
'jsx': 'React JSX',
|
138
|
+
'tsx': 'React TSX',
|
139
|
+
'renpy': 'Ren\'py',
|
140
|
+
'rest': 'reST (reStructuredText)',
|
141
|
+
'robotframework': 'Robot Framework',
|
142
|
+
'robot': 'Robot Framework',
|
143
|
+
'rb': 'Ruby',
|
144
|
+
'sas': 'SAS',
|
145
|
+
'sass': 'Sass (Sass)',
|
146
|
+
'scss': 'Sass (Scss)',
|
147
|
+
'shell-session': 'Shell session',
|
148
|
+
'solidity': 'Solidity (Ethereum)',
|
149
|
+
'solution-file': 'Solution file',
|
150
|
+
'sln': 'Solution file',
|
151
|
+
'soy': 'Soy (Closure Template)',
|
152
|
+
'sparql': 'SPARQL',
|
153
|
+
'rq': 'SPARQL',
|
154
|
+
'splunk-spl': 'Splunk SPL',
|
155
|
+
'sqf': 'SQF: Status Quo Function (Arma 3)',
|
156
|
+
'sql': 'SQL',
|
157
|
+
'tap': 'TAP',
|
158
|
+
'toml': 'TOML',
|
159
|
+
'tt2': 'Template Toolkit 2',
|
160
|
+
'trig': 'TriG',
|
161
|
+
'ts': 'TypeScript',
|
162
|
+
't4-cs': 'T4 Text Templates (C#)',
|
163
|
+
't4': 'T4 Text Templates (C#)',
|
164
|
+
't4-vb': 'T4 Text Templates (VB)',
|
165
|
+
't4-templating': 'T4 templating',
|
166
|
+
'uscript': 'UnrealScript',
|
167
|
+
'uc': 'UnrealScript',
|
168
|
+
'vbnet': 'VB.Net',
|
169
|
+
'vhdl': 'VHDL',
|
170
|
+
'vim': 'vim',
|
171
|
+
'visual-basic': 'Visual Basic',
|
172
|
+
'vb': 'Visual Basic',
|
173
|
+
'wasm': 'WebAssembly',
|
174
|
+
'wiki': 'Wiki markup',
|
175
|
+
'xeoracube': 'XeoraCube',
|
176
|
+
'xojo': 'Xojo (REALbasic)',
|
177
|
+
'xquery': 'XQuery',
|
178
|
+
'yaml': 'YAML',
|
179
|
+
'yml': 'YAML'
|
180
|
+
}
|
181
|
+
};
|
7
182
|
|
8
|
-
function highlightIt(text, language) {
|
183
|
+
function highlightIt(text, language, lineHighlight) {
|
9
184
|
return [
|
10
|
-
'<pre class="language-' + language + '">',
|
185
|
+
'<pre class="language-' + language + '" ' + (lineHighlight ? 'data-line="' + lineHighlight + '"' : '') + '>',
|
11
186
|
'<code class="language-' + language + '">' + Prism.highlight(text, Prism.languages[language]) + '</code>',
|
12
187
|
'</pre>',
|
13
188
|
].join('');
|
14
189
|
}
|
15
190
|
|
191
|
+
function escapeHtml(html) {
|
192
|
+
return $('<div/>').text(html).html();
|
193
|
+
}
|
194
|
+
|
195
|
+
function buildHighlightOptions(trumbowyg) {
|
196
|
+
var languageNames = trumbowyg.o.plugins.highlight.languageNames;
|
197
|
+
var languageNameKeys = Object.keys(languageNames);
|
198
|
+
var prismLanguageKeys = Object.keys(Prism.languages);
|
199
|
+
|
200
|
+
var options = prismLanguageKeys.filter(function (languageKey) {
|
201
|
+
return languageNameKeys.indexOf(languageKey) >= 0;
|
202
|
+
}).map(function (languageKey) {
|
203
|
+
return {
|
204
|
+
id: languageKey,
|
205
|
+
name: languageNames[languageKey]
|
206
|
+
};
|
207
|
+
}).sort(function(a, b){
|
208
|
+
// Sort languages by name
|
209
|
+
return a.name.localeCompare(b.name);
|
210
|
+
}).map(function( language){
|
211
|
+
// Generate a list of options
|
212
|
+
return '<option value="' + escapeHtml(language.id) + '">' + escapeHtml(language.name) + '</option>';
|
213
|
+
}).join('');
|
214
|
+
|
215
|
+
return options;
|
216
|
+
}
|
217
|
+
|
218
|
+
function buildLineHighlightFieldIfEnabled(trumbowyg) {
|
219
|
+
if (trumbowyg.o.plugins.highlight.enableLineHighlight === false) {
|
220
|
+
return '';
|
221
|
+
}
|
222
|
+
|
223
|
+
return '<div class="' + trumbowyg.o.prefix + 'highlight-form-group">' +
|
224
|
+
' <input placeholder="' + trumbowyg.lang.highlightLine +
|
225
|
+
'" class="' + trumbowyg.o.prefix + 'highlight-form-control trumbowyg-line-highlight"/>' +
|
226
|
+
'</div>';
|
227
|
+
}
|
228
|
+
|
16
229
|
// If my plugin is a button
|
17
230
|
function buildButtonDef(trumbowyg) {
|
18
231
|
return {
|
19
232
|
fn: function () {
|
20
233
|
var $modal = trumbowyg.openModal('Code', [
|
21
234
|
'<div class="' + trumbowyg.o.prefix + 'highlight-form-group">',
|
22
|
-
' <select class="' + trumbowyg.o.prefix + 'highlight-form-control language">',
|
23
|
-
(
|
24
|
-
var options = '';
|
25
|
-
|
26
|
-
for (var lang in Prism.languages) {
|
27
|
-
if (Prism.languages.hasOwnProperty(lang)) {
|
28
|
-
options += '<option value="' + lang + '">' + lang + '</option>';
|
29
|
-
}
|
30
|
-
}
|
31
|
-
|
32
|
-
return options;
|
33
|
-
})(),
|
235
|
+
' <select class="' + trumbowyg.o.prefix + 'highlight-form-control language" autofocus>',
|
236
|
+
buildHighlightOptions(trumbowyg),
|
34
237
|
' </select>',
|
35
238
|
'</div>',
|
36
239
|
'<div class="' + trumbowyg.o.prefix + 'highlight-form-group">',
|
37
240
|
' <textarea class="' + trumbowyg.o.prefix + 'highlight-form-control code"></textarea>',
|
38
241
|
'</div>',
|
242
|
+
buildLineHighlightFieldIfEnabled(trumbowyg),
|
39
243
|
].join('\n')),
|
40
244
|
$language = $modal.find('.language'),
|
41
|
-
$code = $modal.find('.code')
|
245
|
+
$code = $modal.find('.code'),
|
246
|
+
$lineHighlight = $modal.find('.trumbowyg-line-highlight');
|
42
247
|
|
43
248
|
// Listen clicks on modal box buttons
|
44
249
|
$modal.on('tbwconfirm', function () {
|
45
250
|
trumbowyg.restoreRange();
|
46
|
-
trumbowyg.execCmd('insertHTML', highlightIt($code.val(), $language.val()));
|
251
|
+
trumbowyg.execCmd('insertHTML', highlightIt($code.val(), $language.val(), $lineHighlight.val()));
|
47
252
|
trumbowyg.execCmd('insertHTML', '<p><br></p>');
|
48
253
|
|
49
254
|
trumbowyg.closeModal();
|
@@ -61,14 +266,26 @@
|
|
61
266
|
langs: {
|
62
267
|
// jshint camelcase:false
|
63
268
|
en: {
|
64
|
-
highlight: 'Code syntax highlight'
|
269
|
+
highlight: 'Code syntax highlight',
|
270
|
+
highlightLine: 'Highlight lines, e.g.: 1,3-5'
|
65
271
|
},
|
66
|
-
|
67
|
-
highlight: '
|
272
|
+
es: {
|
273
|
+
highlight: 'Resaltado de sintaxis de código',
|
274
|
+
highlightLine: 'Resaltar lineas, ej: 1,3-5'
|
275
|
+
},
|
276
|
+
et: {
|
277
|
+
highlight: 'Koodi esiletoomine',
|
278
|
+
highlightLine: 'Koodiread, näiteks: 1,3-5'
|
279
|
+
},
|
280
|
+
hu: {
|
281
|
+
highlight: 'Kód kiemelés'
|
68
282
|
},
|
69
283
|
ko: {
|
70
284
|
highlight: '코드 문법 하이라이트'
|
71
285
|
},
|
286
|
+
pt_br: {
|
287
|
+
highlight: 'Realçar sintaxe de código'
|
288
|
+
},
|
72
289
|
// jshint camelcase:true
|
73
290
|
},
|
74
291
|
// Add our plugin to Trumbowyg registered plugins
|