PageSourceSearch

https://static.ranker.com/_next/static/chunks/list-edit-ckeditor.ba26522026bdf92d.js

js ranker.com collected 2026-09-24 08:25:51 UTC 2,348 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4331],{45561:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x,stripHtmlTags:()=>m});var r=n(85893),a=n(93280),i=n(45697),o=n.n(i),s=n(67294),l=n(32125),c=n(94184),d=n.n(c),h=n(40272);n(94214),n(12532);var u=n(51907),g=n.n(u),p=n(4356);let m=e=>{if(!e)return"";try{return new DOMParser().parseFromString(e,"text/html").body.textContent||""}catch(t){return e.replace(/<[^>]*>?/gm,"")}},f=(0,s.forwardRef)((e,t)=>{let{className:n,data:i,onChange:o,maxLength:l,configValues:c={},onBlur:u,id:f="CKEditor",focus:b,displayMaxLength:x=!1}=e,[_,C]=(0,s.useState)(i),[E,v]=(0,s.useState)("");(0,s.useEffect)(()=>{v(""),l&&m(_).length>=l&&v("You reached the maximum character limit")},[l,_]);let w=(0,s.useCallback)((e,t)=>{let n=t.getData(),r=m(n);l&&r.length>l?r.length-_.length>1?t.setData(r.slice(0,l)):t.setData(_):C(n),null==o||o(e,n)},[_,l,o]),k=(0,s.useCallback)(e=>{b&&e.focus()},[b]),D=(0,s.useCallback)((e,t)=>{null==u||u(e,t.getData())},[u]),K={...p.PW,...c,plugins:[...p.PW.plugins||[],...c.plugins||[]],initialData:i};return(0,r.jsxs)("div",{className:d()(g().main,n),"data-testid":f,children:[(0,r.jsx)(a.CKEditor,{editor:h.KUe,config:K,onChange:w,onBlur:D,ref:t,onReady:k}),(0,r.jsxs)("footer",{className:g().footer,children:[E&&(0,r.jsx)("span",{className:g().error,children:E}),x&&l&&(0,r.jsxs)("p",{className:g().maxLength,children:[m(_).length,"/",l]})]})]})}),b=(0,l.default)(f).withConfig({componentId:"sc-b823748d-0"})([".ck-editor__editable{height:",";width:",";box-sizing:border-box;line-height:25px;p:not(:last-of-type){margin-bottom:15px;}}"],e=>{var t;return"".concat((null===(t=e.options)||void 0===t?void 0:t.height)?"".concat(e.options.height,"px"):"100%;")},e=>{var t;return"".concat((null===(t=e.options)||void 0===t?void 0:t.width)?"".concat(+e.options.width,"px"):"100%;")});f.propTypes={data:o().string.isRequired,className:o().string.isRequired,options:o().shape({height:o().number,width:o().number}),onChange:o().func,onBlur:o().func,maxLength:o().number,configValues:o().object,id:o().string,displayMaxLength:o().bool,focus:o().bool};let x=b},51907:e=>{e.exports={main:"CKEditor_main__bdZrR",error:"CKEditor_error__i_ElZ",footer:"CKEditor_footer__DDr41",maxLength:"CKEditor_maxLength__bKn1J"}}}]);
2//# sourceMappingURL=list-edit-ckeditor.ba26522026bdf92d.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.