CKEDITOR.plugins.add("ipsgiphy",{requires:"widget",icons:"ipsgiphy",hidpi:!0,init:function(a){a.widgets.add("ipsgiphy",{template:"\x3cdiv class\x3d'ipsgiphy'\x3e\x3c/div\x3e"});a.addCommand("ipsgiphy",{exec:function(a){var b=$("."+a.id).find(".cke_button__ipsgiphy");$("#"+b.attr("id")+"_menu").length||($("body").append(ips.templates.render("core.editor.giphy",{id:b.attr("id"),editor:a.name,attribution_image:ips.getSetting("baseURL")+"/applications/core/interface/giphy/logo.png"})),$(document).trigger("contentChange",
[$("#"+b.attr("id")+"_menu")]),b.ipsMenu({alignCenter:!0,closeOnClick:!1}))}});a.ui.addButton("ipsgiphy",{label:ips.getString("giphy"),command:"ipsgiphy",toolbar:"insert"})}});