PageSourceSearch

https://www.petrosoftdesign.com/o/frontend-editor-ckeditor-web/__l…ckeditor5-editor-decoupled$dist$index.js.js

js petrosoftdesign.com collected 2026-10-05 01:13:08 UTC 4,778 bytes, 10 lines download raw bytes

1var b=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var k=(o,r)=>{for(var e in r)b(o,e,{get:r[e],enumerable:!0})},y=(o,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of W(r))!B.call(o,t)&&t!==e&&b(o,t,{get:()=>r[t],enumerable:!(i=I(r,t))||i.enumerable});return o},x=(o,r,e)=>(y(o,r,"default"),e&&y(e,r,"default"));var h={};k(h,{DecoupledEditor:()=>u,DecoupledEditorUI:()=>l,DecoupledEditorUIView:()=>d});var f={};x(f,O);import*as O from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-core$dist$index.js.js";var m={};x(m,S);import*as S from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-utils$dist$index.js.js";var p={};x(p,T);import*as T from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-ui$dist$index.js.js";var n={};x(n,A);import*as A from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-engine$dist$index.js.js";function w(o){return typeof o=="object"&&o!==null}function E(o){if(typeof o!="object"||o==null)return!1;if(Object.getPrototypeOf(o)===null)return!0;if(Object.prototype.toString.call(o)!=="[object Object]"){let e=o[Symbol.toStringTag];return e==null||!Object.getOwnPropertyDescriptor(o,Symbol.toStringTag)?.writable?!1:o.toString()===`[object ${e}]`}let r=o;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(o)===r}function c(o){return w(o)&&o.nodeType===1&&!E(o)}var l=class extends p.EditorUI{view;constructor(r,e){super(r),this.view=e}init(){let r=this.editor,e=this.view,i=r.editing.view,t=e.editable,s=i.document.getRoot();t.name=s.rootName,e.render();let g=t.element;this.setEditableElement(t.name,g),e.editable.bind("isFocused").to(this.focusTracker),i.attachDomRoot(g),this._initPlaceholder(),this._initToolbar(),this.initMenuBar(this.view.menuBarView),this.fire("ready")}destroy(){super.destroy();let r=this.view,e=this.editor.editing.view;e.getDomRoot(r.editable.name)&&e.detachDomRoot(r.editable.name),r.destroy()}_initToolbar(){let r=this.editor,e=this.view;e.toolbar.fillFromConfig(r.config.get("toolbar"),this.componentFactory),this.addToolbar(e.toolbar)}_initPlaceholder(){let r=this.editor,e=r.editing.view,i=e.document.getRoot(),t=r.config.get("placeholder");if(t){let s=typeof t=="string"?t:t[i.rootName];s&&(i.placeholder=s)}(0,n.enableViewPlaceholder)({view:e,element:i,isDirectHost:!1,keepOnFocus:!0})}},d=class extends p.EditorUIView{toolbar;editable;menuBarView;constructor(r,e,i={}){super(r),this.toolbar=new p.ToolbarView(r,{shouldGroupWhenFull:i.shouldToolbarGroupWhenFull}),this.menuBarView=new p.MenuBarView(r),this.editable=new p.InlineEditableUIView(r,e,i.editableElement,{label:i.label}),this.toolbar.extendTemplate({attributes:{class:["ck-reset_all","ck-rounded-corners"],dir:r.uiLanguageDirection}}),this.menuBarView.extendTemplate({attributes:{class:["ck-reset_all","ck-rounded-corners"],dir:r.uiLanguageDirection}})}render(){super.render(),this.registerChild([this.menuBarView,this.toolbar,this.editable])}},u=class extends(0,f.ElementApiMixin)(f.Editor){static get editorName(){return"DecoupledEditor"}ui;constructor(r,e={}){if(!a(r)&&e.initialData!==void 0)throw new m.CKEditorError("editor-create-initial-data",null);super(e),this.config.get("initialData")===void 0&&this.config.set("initialData",v(r)),a(r)&&(this.sourceElement=r,(0,f.secureSourceElement)(this,r)),this.model.document.createRoot();let i=!this.config.get("toolbar.shouldNotGroupWhenFull"),t=new d(this.locale,this.editing.view,{editableElement:this.sourceElement,shouldToolbarGroupWhenFull:i,label:this.config.get("label")});this.ui=new l(this,t)}destroy(){let r=this.getData();return this.ui.destroy(),super.destroy().then(()=>{this.sourceElement&&this.updateSourceElement(r)})}static create(r,e={}){return new Promise(i=>{if(a(r)&&r.tagName==="TEXTAREA")throw new m.CKEditorError("editor-wrong-element",null);let t=new this(r,e);i(t.initPlugins().then(()=>t.ui.init()).then(()=>t.data.init(t.config.get("initialData"))).then(()=>t.fire("ready")).then(()=>t))})}};function v(o){return a(o)?(0,m.getDataFromElement)(o):o}function a(o){return c(o)}var{DecoupledEditor:K,DecoupledEditorUI:U,DecoupledEditorUIView:G,__esMo
1dule:$}=h;export{K as DecoupledEditor,U as DecoupledEditorUI,G as DecoupledEditorUIView,$ as __esModule};
2/*! Bundled license information:
3
4@ckeditor/ckeditor5-editor-decoupled/dist/index.js:
5  (**
6   * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
7   * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8   *)
9*/
10//# sourceMappingURL=@ckeditor$ckeditor5-editor-decoupled$dist$index.js.js.map

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.