/*! * froala_editor v2.0.4 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms * Copyright 2014-2015 Froala Labs */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c),c}:a(jQuery)}(function(a){"use strict";a.extend(a.FroalaEditor.POPUP_TEMPLATES,{emoticons:"[_BUTTONS_][_EMOTICONS_]"}),a.extend(a.FroalaEditor.DEFAULTS,{emoticonsStep:8,emoticonsSet:[{code:"😀",desc:"Grinning face"},{code:"😁",desc:"Grinning face with smiling eyes"},{code:"😂",desc:"Face with tears of joy"},{code:"😃",desc:"Smiling face with open mouth"},{code:"😄",desc:"Smiling face with open mouth and smiling eyes"},{code:"😅",desc:"Smiling face with open mouth and cold sweat"},{code:"😆",desc:"Smiling face with open mouth and tightly-closed eyes"},{code:"😇",desc:"Smiling face with halo"},{code:"😈",desc:"Smiling face with horns"},{code:"😉",desc:"Winking face"},{code:"😊",desc:"Smiling face with smiling eyes"},{code:"😋",desc:"Face savoring delicious food"},{code:"😌",desc:"Relieved face"},{code:"😍",desc:"Smiling face with heart-shaped eyes"},{code:"😎",desc:"Smiling face with sunglasses"},{code:"😏",desc:"Smirking face"},{code:"😐",desc:"Neutral face"},{code:"😑",desc:"Expressionless face"},{code:"😒",desc:"Unamused face"},{code:"😓",desc:"Face with cold sweat"},{code:"😔",desc:"Pensive face"},{code:"😕",desc:"Confused face"},{code:"😖",desc:"Confounded face"},{code:"😗",desc:"Kissing face"},{code:"😘",desc:"Face throwing a kiss"},{code:"😙",desc:"Kissing face with smiling eyes"},{code:"😚",desc:"Kissing face with closed eyes"},{code:"😛",desc:"Face with stuck out tongue"},{code:"😜",desc:"Face with stuck out tongue and winking eye"},{code:"😝",desc:"Face with stuck out tongue and tightly-closed eyes"},{code:"😞",desc:"Disappointed face"},{code:"😟",desc:"Worried face"},{code:"😠",desc:"Angry face"},{code:"😡",desc:"Pouting face"},{code:"😢",desc:"Crying face"},{code:"😣",desc:"Persevering face"},{code:"😤",desc:"Face with look of triumph"},{code:"😥",desc:"Disappointed but relieved face"},{code:"😦",desc:"Frowning face with open mouth"},{code:"😧",desc:"Anguished face"},{code:"😨",desc:"Fearful face"},{code:"😩",desc:"Weary face"},{code:"😪",desc:"Sleepy face"},{code:"😫",desc:"Tired face"},{code:"😬",desc:"Grimacing face"},{code:"😭",desc:"Loudly crying face"},{code:"😮",desc:"Face with open mouth"},{code:"😯",desc:"Hushed face"},{code:"😰",desc:"Face with open mouth and cold sweat"},{code:"😱",desc:"Face screaming in fear"},{code:"😲",desc:"Astonished face"},{code:"😳",desc:"Flushed face"},{code:"😴",desc:"Sleeping face"},{code:"😵",desc:"Dizzy face"},{code:"😶",desc:"Face without mouth"},{code:"😷",desc:"Face with medical mask"}],emoticonsButtons:["emoticonsBack","|"]}),a.FroalaEditor.PLUGINS.emoticons=function(b){function c(){var a=b.$tb.find('.fr-command[data-cmd="emoticons"]'),c=b.popups.get("emoticons");if(c||(c=e()),!c.hasClass("fr-active")){b.popups.refresh("emoticons"),b.popups.setContainer("emoticons",b.$tb);var d=a.offset().left+a.outerWidth()/2,f=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("emoticons",d,f,a.outerHeight())}}function d(){b.popups.hide("emoticons")}function e(){var a="";b.opts.toolbarInline&&b.opts.emoticonsButtons.length>0&&(a='
");var c={buttons:a,emoticons:f()},d=b.popups.create("emoticons",c);return b.tooltip.bind(d,".fr-emoticon"),d}function f(){for(var a="