Skip to Content

JavaScript File

URL: https://www-gold365.win/wp-content/plugins/elementor/assets/js/text-editor.45609661e409413f1cef.bundle.min.js
HTTP Status: 200 OK
MIME Type: text/javascript
Last Modified: Wed, 19 Nov 2025 10:24:58 GMT
Download Time: Less than a second
Cookies: None
Size: 2 KB
HTTP Headers:  7 headers
Links In:  1 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
OK Issues: No issues found

1"use strict";(self.webpackChunkelementorFrontend=self.webpackChunkelementorFrontend||[]).push([[212],{5362:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}

2),t.default=void 0,r(4846),r(6211);class TextEditor extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{paragraph:"p:first"}

3,classes:{dropCap:"elementor-drop-cap",dropCapLetter:"elementor-drop-cap-letter"}

4}

5}

6getDefaultElements(){const e=this.getSettings("selectors"),t=this.getSettings("classes"),r=jQuery("<span>",{class:t.dropCap}

7),p=jQuery("<span>",{class:t.dropCapLetter}

8);return r.append(p),{$paragraph:this.$element.find(e.paragraph),$dropCap:r,$dropCapLetter:p}

9}

10wrapDropCap(){if(!this.getElementSettings("drop_cap"))return void(this.dropCapLetter&&(this.elements.$dropCap.remove(),this.elements.$paragraph.prepend(this.dropCapLetter),this.dropCapLetter=""));const e=this.elements.$paragraph;if(!e.length)return;const t=e.html().replace(/&nbsp;/g," "),r=t.match(/^ *([^ ] ?)/);if(!r)return;const p=r[1],s=p.trim();if("<"===s)return;this.dropCapLetter=p,this.elements.$dropCapLetter.text(s);const a=t.slice(p.length).replace(/^ */,e=>new Array(e.length+1).join("&nbsp;"));e.html(a).prepend(this.elements.$dropCap)}

11onInit(...e){super.onInit(...e),this.wrapDropCap()}

12onElementChange(e){"drop_cap"===e&&this.wrapDropCap()}

13}

14t.default=TextEditor}

15}

16]);