PageSourceSearch

https://www.toolband.com/assets/ckeditor_config-132e14575d5011ab70…4fd5bc9427dcdbd111f23e3b22cfc89f06820aab.js

js toolband.com collected 2026-10-01 11:51:43 UTC 4,029 bytes, 1 lines download raw bytes

1function sendToNativeApp(e){var t=navigator.userAgent||window.opera;if(t.match(/android/i))try{AndroidFunction.receiveDataFromWebView(e)}catch(e){console.error(e)}else if(t.match(/iPhone|iPod|iPad/i))try{window.webkit.messageHandlers.receiveDataFromWebView.postMessage(e)}catch(e){console.error(e)}}function setDataInEditor(e){let t=window.mobileWebViewEditor;t?t.setData(e):console.error("Editor instance not found")}function embedHandler(e){const t=e.ui.view.editable.element;if(new MutationObserver((o=>{let i=!1,n=!1;o.forEach((e=>{e.addedNodes.forEach((e=>{e.nodeType===Node.ELEMENT_NODE&&((e.matches(".instagram-media")||e.querySelector(".instagram-media"))&&(i=!0),(e.matches(".twitter-tweet")||e.querySelector(".twitter-tweet"))&&(n=!0))}))})),i&&window.instgrm&&window.instgrm.Embeds&&"function"==typeof window.instgrm.Embeds.process&&(window.instgrm.Embeds.process(t),processAfterMediaInsertion(e)),n&&window.twttr&&window.twttr.widgets&&"function"==typeof window.twttr.widgets.load&&(window.twttr.widgets.load.call(window.twttr.widgets,t),processAfterMediaInsertion(e))})).observe(t,{childList:!0,subtree:!0}),e.ui&&e.ui.view&&e.ui.view.editable&&e.ui.view.editable.element){const t=e.ui.view.editable.element;new MutationObserver((t=>{t.some((e=>"childList"===e.type&&e.addedNodes.length>0&&Array.from(e.addedNodes).some((e=>"IFRAME"===e.nodeName||"DIV"===e.nodeName&&e.classList.contains("ck-media__wrapper")))))&&processAfterMediaInsertion(e)})).observe(t,{childList:!0,subtree:!0})}}function processAfterMediaInsertion(e){e.model.change((t=>{const o=e.model.document.selection.getLastPosition().parent,i=t.createPositionAt(o,"end"),n=t.createElement("paragraph");t.insert(n,i),t.setSelection(n,0)}));const t=e.ui.view.editable.element,o=parseInt(window.getComputedStyle(t).height)+100;t.style.height=`${o}px`,t.scrollTop=t.scrollHeight}$(document).ready((function(){let e={toolbar:{items:["bold","italic","link","underline","bulletedList","numberedList","|","blockQuote","mediaEmbed"]},simpleUpload:{uploadUrl:"/file_uploads/upload",headers:{"X-CSRF-Token":document.querySelectorAll('meta[name="csrf-token"]')[0].content}},mediaEmbed:{providers:[{name:"instagram",url:/^(https?:\/\/(?:www\.)?instagram\.com\/(?:reel|p)\/[a-zA-Z0-9_-]+\/?)/,html:e=>'<blockquote class="instagram-media" data-instgrm-captioned data-instgrm-permalink="'+e[0]+'" data-instgrm-version="14"></blockquote>'},{name:"youtube",url:/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/)([a-zA-Z0-9_-]+)/,html:e=>'<div style="position: relative; padding-bottom: 56.25%; height: 0;"><iframe src="'+("https://www.youtube.com/embed/"+e[1])+'" frameborder="0" allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div>'},{name:"twitter",url:/^(https?:\/\/(?:www\.)?(?:twitter\.com|x\.com)\/(?:#!\/)?\w+\/status(?:es)?\/(\d+))/,html:e=>'<blockquote class="twitter-tweet"><a href="'+e[0].replace(/x\.com/,"twitter.com")+'"></a></blockquote>'}]},language:"en",updateSourceElementOnDestroy:!0,removePlugins:["ImageCaption"]},t={...e,placeholder:"Share your thoughts..."},o={...e,placeholder:"Add a new comment..."};const i=document.querySelector("#mobile-web-view-editor");i&&ClassicEditor.create(i,t).then((e=>{window.mobileWebViewEditor=e,e.model.document.on("change:data",(()=>{embedHandler(e),sendToNativeApp(e.getData())}))})).catch((e=>{console.log(e)}));const n=document.querySelector("#editor");n&&ClassicEditor.create(n,t).then((e=>{window.editor=e,embedHandler(window.editor)})).catch((e=>{console.log(e)}));const r=document.querySelector("#comment-editor");r&&ClassicEditor.create(r,o).then((e=>{window.comment_editor=e,embedHandler(window.comment_editor)})).catch((e=>{console.log(e)}))})),document.addEventListener("DOMContentLoaded",(()=>{document.body.addEventListener("click",(function(e){if(e.target.closest("button.ck-dropdown__button")){document.querySelectorAll('[id^="ck-labeled-field-view-status-"]').forEach((e=>{e.innerText="Paste IG, X or YouTube link here"}))}}))}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.