Server : Apache System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 User : vapecompany ( 2719) PHP Version : 7.4.33 Disable Function : NONE Directory : /home/vapecompany/www/wp-includes/js/tinymce/plugins/wordpress/ |
Upload File : |
!function(E){E.ui.FloatPanel.zIndex=100100,E.PluginManager.add("wordpress",function(l){var i,t,P=E.DOM,s=E.each,d=l.editorManager.i18n.translate,a=window.jQuery,o=window.wp,r=o&&o.editor&&o.editor.autop&&l.getParam("wpautop",!0);function e(n){var e,o=0,t="hide"===n;!(e=l.theme.panel?l.theme.panel.find(".toolbar:not(.menubar)"):e)||e.length<2||"hide"===n&&!e[1].visible()||(!n&&e[1].visible()&&(n="hide"),s(e,function(e,t){0<t&&("hide"===n?(e.hide(),o+=30):(e.show(),o-=30))}),o&&!t&&(E.Env.iOS||(t=l.getContentAreaContainer().firstChild,P.setStyle(t,"height",t.clientHeight+o)),"hide"===n?(setUserSetting("hidetb","0"),i&&i.active(!1)):(setUserSetting("hidetb","1"),i&&i.active(!0))),l.fire("wp-toolbar-toggle"))}function n(){}return a&&a(document).triggerHandler("tinymce-editor-setup",[l]),l.addButton("wp_adv",{tooltip:"Toolbar Toggle",cmd:"WP_Adv",onPostRender:function(){(i=this).active("1"===getUserSetting("hidetb"))}}),l.on("PostRender",function(){l.getParam("wordpress_adv_hidden",!0)&&"0"===getUserSetting("hidetb","0")&&e("hide")}),l.addCommand("WP_Adv",function(){e()}),l.on("focus",function(){window.wpActiveEditor=l.id}),l.on("BeforeSetContent",function(e){var n;e.content&&(-1!==e.content.indexOf("\x3c!--more")&&(n=d("Read more..."),e.content=e.content.replace(/<!--more(.*?)-->/g,function(e,t){return'<img src="'+E.Env.transparentSrc+'" data-wp-more="more" data-wp-more-text="'+t+'" class="wp-more-tag mce-wp-more" alt="" title="'+n+'" data-mce-resize="false" data-mce-placeholder="1" />'})),-1!==e.content.indexOf("\x3c!--nextpage--\x3e")&&(n=d("Page break"),e.content=e.content.replace(/<!--nextpage-->/g,'<img src="'+E.Env.transparentSrc+'" data-wp-more="nextpage" class="wp-more-tag mce-wp-nextpage" alt="" title="'+n+'" data-mce-resize="false" data-mce-placeholder="1" />')),e.load&&"raw"!==e.format&&r&&(e.content=o.editor.autop(e.content)),e.content=e.content.replace(/<p>([^<>]+)<\/p>/gi,function(e,t){return/^( |\s|\u00a0|\ufeff)+$/i.test(t)?"<p><br /></p>":e}))}),l.on("PostProcess",function(e){e.get&&(e.content=e.content.replace(/<img[^>]+>/g,function(e){var t,n="";return-1!==e.indexOf('data-wp-more="more"')?e="\x3c!--more"+(n=(t=e.match(/data-wp-more-text="([^"]+)"/))?t[1]:n)+"--\x3e":-1!==e.indexOf('data-wp-more="nextpage"')&&(e="\x3c!--nextpage--\x3e"),e}))}),l.on("ResolveName",function(e){var t;"IMG"===e.target.nodeName&&(t=l.dom.getAttrib(e.target,"data-wp-more"))&&(e.name=t)}),l.addCommand("WP_More",function(e){var t,n="wp-more-tag",o=l.dom,i=l.selection.getNode();n+=" mce-wp-"+(e=e||"more"),t=d("more"===e?"Read more...":"Next page"),e='<img src="'+E.Env.transparentSrc+'" alt="" title="'+t+'" class="'+n+'" data-wp-more="'+e+'" data-mce-resize="false" data-mce-placeholder="1" />',"BODY"===i.nodeName||"P"===i.nodeName&&"BODY"===i.parentNode.nodeName?l.insertContent(e):(i=o.getParent(i,function(e){return!(!e.parentNode||"BODY"!==e.parentNode.nodeName)},l.getBody()))&&("P"===i.nodeName?i.appendChild(o.create("p",null,e).firstChild):o.insertAfter(o.create("p",null,e),i),l.nodeChanged())}),l.addCommand("WP_Code",function(){l.formatter.toggle("code")}),l.addCommand("WP_Page",function(){l.execCommand("WP_More","nextpage")}),l.addCommand("WP_Help",function(){var e,t,n=E.Env.mac?d("Ctrl + Alt + letter:"):d("Shift + Alt + letter:"),o=E.Env.mac?d("Cmd + letter:"):d("Ctrl + letter:"),i=[],a=[];function r(e){var n="<tr>";return s(e,function(e,t){n+=e?"<td><kbd>"+t+"</kbd></td><td>"+d(e)+"</td>":"<td></td><td></td>"}),n+"</tr>"}s([{c:"Copy",x:"Cut"},{v:"Paste",a:"Select all"},{z:"Undo",y:"Redo"},{b:"Bold",i:"Italic"},{u:"Underline",k:"Insert/edit link"}],function(e){i.push(r(e))}),s([{1:"Heading 1",2:"Heading 2"},{3:"Heading 3",4:"Heading 4"},{5:"Heading 5",6:"Heading 6"},{l:"Align left",c:"Align center"},{r:"Align right",j:"Justify"},{d:"Strikethrough",q:"Blockquote"},{u:"Bullet list",o:"Numbered list"},{a:"Insert/edit link",s:"Remove link"},{m:"Insert/edit image",t:"Insert Read More tag"},{h:"Keyboard Shortcuts",x:"Code"},{p:"Insert Page Break tag",w:"Distraction-free writing mode"}],function(e){a.push(r(e))}),e="<tr><th>"+(e=[d("Letter"),d("Action"),d("Letter"),d("Action")]).join("</th><th>")+"</th></tr>",t=(t='<div class="wp-editor-help">')+"<h2>"+d("Default shortcuts,")+" "+o+'</h2><table class="wp-help-th-center fixed">'+e+i.join("")+"</table><h2>"+d("Additional shortcuts,")+" "+n+'</h2><table class="wp-help-th-center fixed">'+e+a.join("")+"</table>",t=(t=l.plugins.wptextpattern&&(!E.Env.ie||8<E.Env.ie)?(t=t+"<h2>"+d("When starting a new paragraph with one of these formatting shortcuts followed by a space, the formatting will be applied automatically. Press Backspace or Escape to undo.")+'</h2><table class="wp-help-th-center fixed">'+r({"*":"Bullet list","1.":"Numbered list"})+r({"-":"Bullet list","1)":"Numbered list"})+"</table>")+"<h2>"+d("The following formatting shortcuts are replaced when pressing Enter. Press Escape or the Undo button to undo.")+'</h2><table class="wp-help-single">'+r({">":"Blockquote"})+r({"##":"Heading 2"})+r({"###":"Heading 3"})+r({"####":"Heading 4"})+r({"#####":"Heading 5"})+r({"######":"Heading 6"})+r({"---":"Horizontal line"})+"</table>":t)+"<h2>"+d("Focus shortcuts:")+'</h2><table class="wp-help-single">'+r({"Alt + F8":"Inline toolbar (when an image, link or preview is selected)"})+r({"Alt + F9":"Editor menu (when enabled)"})+r({"Alt + F10":"Editor toolbar"})+r({"Alt + F11":"Elements path"})+"</table><p>"+d("To move focus to other buttons use Tab or the arrow keys. To return focus to the editor press Escape or use one of the buttons.")+"</p>",t+="</div>",(t=l.windowManager.open({title:"Keyboard Shortcuts",items:{type:"container",classes:"wp-help",html:t},buttons:{text:"Close",onclick:"close"}})).$el&&(t.$el.find('div[role="application"]').attr("role","document"),(t=t.$el.find(".mce-wp-help"))[0]&&(t.attr("tabindex","0"),t[0].focus(),t.on("keydown",function(e){33<=e.keyCode&&e.keyCode<=40&&e.stopPropagation()})))}),l.addCommand("WP_Medialib",function(){o&&o.media&&o.media.editor&&o.media.editor.open(l.id)}),l.addButton("wp_more",{tooltip:"Insert Read More tag",onclick:function(){l.execCommand("WP_More","more")}}),l.addButton("wp_page",{tooltip:"Page break",onclick:function(){l.execCommand("WP_More","nextpage")}}),l.addButton("wp_help",{tooltip:"Keyboard Shortcuts",cmd:"WP_Help"}),l.addButton("wp_code",{tooltip:"Code",cmd:"WP_Code",stateSelector:"code"}),o&&o.media&&o.media.editor&&l.addMenuItem("add_media",{text:"Add Media",icon:"wp-media-library",context:"insert",cmd:"WP_Medialib"}),l.addMenuItem("wp_more",{text:"Insert Read More tag",icon:"wp_more",context:"insert",onclick:function(){l.execCommand("WP_More","more")}}),l.addMenuItem("wp_page",{text:"Page break",icon:"wp_page",context:"insert",onclick:function(){l.execCommand("WP_More","nextpage")}}),l.on("BeforeExecCommand",function(e){!E.Env.webkit||"InsertUnorderedList"!==e.command&&"InsertOrderedList"!==e.command||(t=t||l.dom.create("style",{type:"text/css"},"#tinymce,#tinymce span,#tinymce li,#tinymce li>span,#tinymce p,#tinymce p>span{font:medium sans-serif;color:#000;line-height:normal;}"),l.getDoc().head.appendChild(t))}),l.on("ExecCommand",function(e){E.Env.webkit&&t&&("InsertUnorderedList"===e.command||"InsertOrderedList"===e.command)&&l.dom.remove(t)}),l.on("init",function(){var e=E.Env,t=["mceContentBody"],n=l.getDoc(),o=l.dom;e.iOS&&o.addClass(n.documentElement,"ios"),"rtl"===l.getParam("directionality")&&(t.push("rtl"),o.setAttrib(n.documentElement,"dir","rtl")),o.setAttrib(n.documentElement,"lang",l.getParam("wp_lang_attr")),e.ie?9===parseInt(e.ie,10)?t.push("ie9"):8===parseInt(e.ie,10)?t.push("ie8"):e.ie<8&&t.push("ie7"):e.webkit&&t.push("webkit"),t.push("wp-editor"),s(t,function(e){e&&o.addClass(n.body,e)}),l.on("BeforeSetContent",function(e){e.content&&(e.content=e.content.replace(/<p>\s*<(p|div|ul|ol|dl|table|blockquote|h[1-6]|fieldset|pre)( [^>]*)?>/gi,"<$1$2>").replace(/<\/(p|div|ul|ol|dl|table|blockquote|h[1-6]|fieldset|pre)>\s*<\/p>/gi,"</$1>"))}),a&&a(document).triggerHandler("tinymce-editor-init",[l]),window.tinyMCEPreInit&&window.tinyMCEPreInit.dragDropUpload&&o.bind(n,"dragstart dragend dragover drop",function(e){a&&a(document).trigger(new a.Event(e))}),l.getParam("wp_paste_filters",!0)&&(l.on("PastePreProcess",function(e){e.content=e.content.replace(/<br class="?Apple-interchange-newline"?>/gi,""),E.Env.webkit||(e.content=e.content.replace(/(<[^>]+) style="[^"]*"([^>]*>)/gi,"$1$2"),e.content=e.content.replace(/(<[^>]+) data-mce-style=([^>]+>)/gi,"$1 style=$2"))}),l.on("PastePostProcess",function(e){s(o.select("p",e.node),function(e){o.isEmpty(e)&&o.remove(e)})}))}),l.on("SaveContent",function(e){l.inline||!l.isHidden()?(e.content=e.content.replace(/<p>(?:<br ?\/?>|\u00a0|\uFEFF| )*<\/p>/g,"<p> </p>"),r&&(e.content=o.editor.removep(e.content))):e.content=e.element.value}),l.on("preInit",function(){l.schema.addValidElements("@[id|accesskey|class|dir|lang|style|tabindex|title|contenteditable|draggable|dropzone|hidden|spellcheck|translate],i,b,script[src|async|defer|type|charset|crossorigin|integrity]"),E.Env.iOS&&(l.settings.height=300),s({c:"JustifyCenter",r:"JustifyRight",l:"JustifyLeft",j:"JustifyFull",q:"mceBlockQuote",u:"InsertUnorderedList",o:"InsertOrderedList",s:"unlink",m:"WP_Medialib",z:"WP_Adv",t:"WP_More",d:"Strikethrough",h:"WP_Help",p:"WP_Page",x:"WP_Code"},function(e,t){l.shortcuts.add("access+"+t,"",e)}),l.addShortcut("meta+s","",function(){o&&o.autosave&&o.autosave.server.triggerSave()}),1<window.getUserSetting("editor_plain_text_paste_warning")&&(l.settings.paste_plaintext_inform=!1)}),l.on("PastePlainTextToggle",function(e){!0!==e.state||(e=parseInt(window.getUserSetting("editor_plain_text_paste_warning"),10)||0)<2&&window.setUserSetting("editor_plain_text_paste_warning",++e)}),l.on("preinit",function(){var n,b,t,v,y,_,r=E.ui.Factory,d=l.settings,e=l.getContainer(),C=document.getElementById("wpadminbar"),x=document.getElementById(l.id+"_ifr");function o(e){n&&(n.tempHide||"hide"===e.type?(n.hide(),n=!1):"resizewindow"!==e.type&&"scrollwindow"!==e.type&&"resize"!==e.type&&"scroll"!==e.type||n.blockHide||(clearTimeout(t),t=setTimeout(function(){n&&"function"==typeof n.show&&(n.scrolling=!1,n.show())},250),n.scrolling=!0,n.hide()))}e&&(v=E.$(".mce-toolbar-grp",e)[0],y=E.$(".mce-statusbar",e)[0]),"content"===l.id&&(_=document.getElementById("post-status-info")),l.shortcuts.add("alt+119","",function(){var e;n&&(e=n.find("toolbar")[0])&&e.focus(!0)}),l.on("nodechange",function(e){var t=l.selection.isCollapsed(),t={element:e.element,parents:e.parents,collapsed:t};l.fire("wptoolbar",t),b=t.selection||t.element,n&&n!==t.toolbar&&n.hide(),t.toolbar?n!==t.toolbar?(n=t.toolbar).show():n.reposition():n=!1}),l.on("focus",function(){n&&n.show()}),l.on("resizewindow scrollwindow",o),l.dom.bind(l.getWin(),"resize scroll",o),l.on("remove",function(){l.off("resizewindow scrollwindow",o),l.dom.unbind(l.getWin(),"resize scroll",o)}),l.on("blur hide",o),l.wp=l.wp||{},l.wp._createToolbar=function(e,t){var n,o,a=[];return s(e,function(i){var t;function e(){var e=l.selection;"bullist"===t&&e.selectorChanged("ul > li",function(e,t){for(var n,o=t.parents.length;o--&&"OL"!==(n=t.parents[o].nodeName)&&"UL"!=n;);i.active(e&&"UL"===n)}),"numlist"===t&&e.selectorChanged("ol > li",function(e,t){for(var n,o=t.parents.length;o--&&"OL"!==(n=t.parents[o].nodeName)&&"UL"!==n;);i.active(e&&"OL"===n)}),i.settings.stateSelector&&e.selectorChanged(i.settings.stateSelector,function(e){i.active(e)},!0),i.settings.disabledStateSelector&&e.selectorChanged(i.settings.disabledStateSelector,function(e){i.disabled(e)})}"|"===i?o=null:r.has(i)?(i={type:i},d.toolbar_items_size&&(i.size=d.toolbar_items_size),a.push(i),o=null):(o||(o={type:"buttongroup",items:[]},a.push(o)),l.buttons[i]&&(t=i,(i="function"==typeof(i=l.buttons[t])?i():i).type=i.type||"button",d.toolbar_items_size&&(i.size=d.toolbar_items_size),i=r.create(i),o.items.push(i),l.initialized?e():l.on("init",e)))}),(n=r.create({type:"panel",layout:"stack",classes:"toolbar-grp inline-toolbar-grp",ariaRoot:!0,ariaRemember:!0,items:[{type:"toolbar",layout:"flow",items:a}]})).bottom=t,n.on("show",function(){this.reposition()}),n.on("keydown",function(e){27===e.keyCode&&(this.hide(),l.focus())}),l.on("remove",function(){n.remove()}),n.reposition=function(){if(!b)return this;var e,t=window.pageXOffset||document.documentElement.scrollLeft,n=window.pageYOffset||document.documentElement.scrollTop,o=window.innerWidth,i=window.innerHeight,a=x?x.getBoundingClientRect():{top:0,right:o,bottom:i,left:0,width:o,height:i},r=this.getEl(),d=r.offsetWidth,l=r.offsetHeight,s=b.getBoundingClientRect(),c=(s.left+s.right)/2,p=l+8+5,m=C?C.getBoundingClientRect().bottom:0,u=v?v.getBoundingClientRect().bottom:0,g=y?i-y.getBoundingClientRect().top:0,h=_?i-_.getBoundingClientRect().top:0,f=Math.max(0,m,u,a.top),w=Math.max(0,g,h,i-a.bottom),m=s.top+a.top-f,u=i-a.top-s.bottom-w,g=i-f-w,h="",i=0,w=0;return g<=m||g<=u?(this.scrolling=!0,this.hide(),this.scrolling=!1):(E.Env.iOS&&"IMG"===b.nodeName&&(i=54,w=46),this.bottom?p<=u?(h=" mce-arrow-up",e=s.bottom+a.top+n-w):p<=m&&(h=" mce-arrow-down",e=s.top+a.top+n-l-8+i):p<=m?(h=" mce-arrow-down",e=s.top+a.top+n-l-8+i):p<=u&&g/2>s.bottom+a.top-f&&(h=" mce-arrow-up",e=s.bottom+a.top+n-w),void 0===e&&(e=n+f+5+w),c=c-d/2+a.left+t,s.left<0||s.right>a.width?c=a.left+t+(a.width-d)/2:o<=d?(h+=" mce-arrow-full",c=0):c<0&&s.left+d>o||o<c+d&&s.right-d<0?c=(o-d)/2:c<a.left+t?(h+=" mce-arrow-left",c=s.left+a.left+t):c+d>a.width+a.left+t&&(h+=" mce-arrow-right",c=s.right-d+a.left+t),E.Env.iOS&&"IMG"===b.nodeName&&(h=h.replace(/ ?mce-arrow-(up|down)/g,"")),r.className=r.className.replace(/ ?mce-arrow-[\w]+/g,"")+h,P.setStyles(r,{left:c,top:e})),this},n.hide().renderTo(document.body),n}},!0),{_showButtons:n,_hideButtons:n,_setEmbed:n,_getEmbed:n}})}(window.tinymce);