$gp.InitCKInline=function(){CKEDITOR.on("instanceCreated",function(b){var a;a=gp_ckconfig.bodyId?"html,body,#"+gp_ckconfig.bodyId:"html,body";a+="{width:100%;display:block !important;margin:-1px 0 0 -1px !important;padding:1px 0 0 1px !important;top:0 !important;left:0 !important;right:0 !important;bottom:0 !important;height:auto !important;float:none !important;min-width:0 !important;";a+="border:0 none !important;border-radius: 0 !important;-moz-border-radius:0 !important;-o-border-radius:0 !important-webkit-border-radius:0 !important";
a+="}";a+="html{overflow:hidden}";a+="body{overflow-x:auto;overflow-y:hidden;}";b.editor.addCss(a)});CKEDITOR.on("instanceReady",function(){$(".cke_editor").each(function(){var b=$(this);if(0!=b.find("iframe").length){var a=b.css("width"),c=b.parent().css("width");a<c&&b.css("width",c)}})});var b=gp_ckconfig;b.toolbarCanCollapse=!1;b.autoGrow_minHeight=10;b.resize_enabled=!1;b.sharedSpaces={top:"ckeditor_top",bottom:"ckeditor_bottom"};b.toolbar="inline";b.extraPlugins="gpautogrow";b.FillEmptyBlocks=
!1;$.each(gp_styles,function(b,a){$(a.selector).addClass("gp_style_parent").data("gp_style",a)})};
function gp_init_inline_edit(b,e){var a=gp_editing.get_path(b),c=gp_editing.get_edit_area(b);if(!(!1==c||!1==a)){"function"==typeof $gp.InitCKInline&&($gp.InitCKInline(),delete $gp.InitCKInline);c.parent().addClass("inline_editor");gp_editing.editor_tools();var d=c.closest(".gp_style_parent").data("gp_style");d?(gp_ckconfig.bodyId=d.bodyId,gp_ckconfig.bodyClass=d.bodyClass,gp_ckconfig.contentsCss=$("#theme_stylesheet").attr("href"),gp_ckconfig.height=Math.max(10,c.height())):(gp_ckconfig.bodyId=!1,
gp_ckconfig.bodyClass=!1,gp_ckconfig.contentsCss=gpBase+"/include/css/ckeditor_contents.css");c=c.get(0);c.innerHTML=e.content;gp_editor=CKEDITOR.replace(c,gp_ckconfig);gp_editor.save_path=a;gp_editor.gp_saveData=function(){var a=gp_editor.getData();return"gpcontent="+encodeURIComponent(a)};loaded()}};