u8.services.events.bind("CKEditor.load",function(n,a){"use strict";var t=a.window.$;n.plugins.add("actionbuttons",{requires:"button",init:function(n){if(!n||!n.config||!n.config.update||!n.config.update.actions||n.config.update.actions.length==0){return}var a=n.config.update.actions;var o="update_action_";a.forEach(function(a,t){this._addButtonCommand(n,{commandName:a._command,commandArgs:a.commandArgs,label:a.title,buttonName:o+t})},this);n.on("uiReady",function(){for(var n=0;n<a.length;n++){var i="a.cke_button__"+o+n;var c=t(i);var d=c.children("span.cke_button_icon");if(!d){continue}d.sprite(a[n].image)}})},_addButtonCommand:function(n,a){n.addCommand(a.commandName||"<none>",{exec:function(n){n.fire("update.action",{commandName:a.commandName,commandArgs:a.commandArgs})}});if(n.ui.addButton){n.ui.addButton(a.buttonName,{label:a.label,command:a.commandName,toolbar:"actionbuttons"})}}})});