PATH:
home
/
lab2454c
/
spaxtac.com
/
wp-content
/
plugins
/
elementor
/
assets
/
js
/*! elementor - v3.4.8 - 16-11-2021 */ (self["webpackChunkelementor"] = self["webpackChunkelementor"] || []).push([["text-editor"],{ /***/ "../assets/dev/js/frontend/handlers/text-editor.js": /*!*********************************************************!*\ !*** ../assets/dev/js/frontend/handlers/text-editor.js ***! \*********************************************************/ /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; class TextEditor extends elementorModules.frontend.handlers.Base { getDefaultSettings() { return { selectors: { paragraph: 'p:first' }, classes: { dropCap: 'elementor-drop-cap', dropCapLetter: 'elementor-drop-cap-letter' } }; } getDefaultElements() { const selectors = this.getSettings('selectors'), classes = this.getSettings('classes'), $dropCap = jQuery('<span>', { class: classes.dropCap }), $dropCapLetter = jQuery('<span>', { class: classes.dropCapLetter }); $dropCap.append($dropCapLetter); return { $paragraph: this.$element.find(selectors.paragraph), $dropCap: $dropCap, $dropCapLetter: $dropCapLetter }; } wrapDropCap() { const isDropCapEnabled = this.getElementSettings('drop_cap'); if (!isDropCapEnabled) { // If there is an old drop cap inside the paragraph if (this.dropCapLetter) { this.elements.$dropCap.remove(); this.elements.$paragraph.prepend(this.dropCapLetter); this.dropCapLetter = ''; } return; } const $paragraph = this.elements.$paragraph; if (!$paragraph.length) { return; } const paragraphContent = $paragraph.html().replace(/ /g, ' '), firstLetterMatch = paragraphContent.match(/^ *([^ ] ?)/); if (!firstLetterMatch) { return; } const firstLetter = firstLetterMatch[1], trimmedFirstLetter = firstLetter.trim(); // Don't apply drop cap when the content starting with an HTML tag if ('<' === trimmedFirstLetter) { return; } this.dropCapLetter = firstLetter; this.elements.$dropCapLetter.text(trimmedFirstLetter); const restoredParagraphContent = paragraphContent.slice(firstLetter.length).replace(/^ */, match => { return new Array(match.length + 1).join(' '); }); $paragraph.html(restoredParagraphContent).prepend(this.elements.$dropCap); } onInit(...args) { super.onInit(...args); this.wrapDropCap(); } onElementChange(propertyName) { if ('drop_cap' === propertyName) { this.wrapDropCap(); } } } exports.default = TextEditor; /***/ }) }]); //# sourceMappingURL=text-editor.a8434931ecdcd5ff7589.bundle.js.map
[-] frontend.min.js
[edit]
[-] editor.js
[edit]
[-] alert.f04b9d16129bc8aa4cdc.bundle.js
[edit]
[-] progress.5306267e0436c8de4985.bundle.js
[edit]
[-] counter.1bf6011c2ab9506880c2.bundle.min.js
[edit]
[-] admin-feedback.min.js
[edit]
[-] frontend.js
[edit]
[-] alert.124c2442b8a696597f9e.bundle.min.js
[edit]
[-] kit-library.d3688acfaab28676a99c.bundle.js
[edit]
[-] tabs.b7bd957161644e810d53.bundle.js
[edit]
[-] toggle.5e8aae8d1c1e897e9b4e.bundle.js
[edit]
[-] text-editor.9efe2dca043f0f618897.bundle.min.js
[edit]
[-] image-carousel.024943eec9daaabea9ff.bundle.js
[edit]
[-] admin-top-bar.min.js
[edit]
[+]
..
[-] admin.js
[edit]
[-] accordion.5824c4bc9e26d54f2918.bundle.js
[edit]
[-] video.509fb0e07b97e0f603d7.bundle.js
[edit]
[-] admin-top-bar.js
[edit]
[-] editor-modules.min.js
[edit]
[-] image-carousel.f9dc73796adfb21bb945.bundle.min.js
[edit]
[-] gutenberg.min.js
[edit]
[-] app.min.js
[edit]
[-] app.js
[edit]
[-] text-path.9b3ece1b692d34d012b5.bundle.js
[edit]
[-] preloaded-modules.min.js
[edit]
[-] 06ad222c8807f0a951da.bundle.js
[edit]
[-] preloaded-modules.js
[edit]
[-] gutenberg.js
[edit]
[-] editor-document.js
[edit]
[-] text-path.15daa9710b97d5cf86b9.bundle.min.js
[edit]
[-] app-packages.js
[edit]
[-] common.min.js
[edit]
[-] toggle.1aca60f44e355cb43256.bundle.min.js
[edit]
[-] common-modules.min.js
[edit]
[-] common-modules.js
[edit]
[-] frontend-modules.min.js
[edit]
[-] common.js
[edit]
[-] new-template.min.js
[edit]
[-] app-loader.js
[edit]
[-] editor.min.js
[edit]
[-] elementor-admin-bar.js
[edit]
[-] elementor-admin-bar.min.js
[edit]
[-] tabs.cd05b61e107cc58d1be9.bundle.min.js
[edit]
[-] frontend-modules.js
[edit]
[-] lightbox.c3bb4b95635c5e3ad984.bundle.min.js
[edit]
[-] webpack.runtime.min.js
[edit]
[-] kit-library.e61c291a7b6bbc946eeb.bundle.min.js
[edit]
[-] app-loader.min.js
[edit]
[-] webpack.runtime.js
[edit]
[-] editor-modules.js
[edit]
[-] wp-audio.de344657de8b792ed9b0.bundle.js
[edit]
[-] video.505da250f982d8f15187.bundle.min.js
[edit]
[-] new-template.js
[edit]
[-] admin-feedback.js
[edit]
[-] text-editor.a8434931ecdcd5ff7589.bundle.js
[edit]
[-] editor-document.min.js
[edit]
[-] beta-tester.js
[edit]
[-] accordion.839112600fade8979d16.bundle.min.js
[edit]
[-] counter.b452600865ffc51a6ea0.bundle.js
[edit]
[-] progress.4079971c3240c226b858.bundle.min.js
[edit]
[-] app-packages.min.js
[edit]
[-] admin.min.js
[edit]
[-] lightbox.8c3d45f71a9a1ecd69fc.bundle.js
[edit]
[-] wp-audio.2332b719d144261993a3.bundle.min.js
[edit]
[-] beta-tester.min.js
[edit]
[-] d44a57c594ce7771dd50.bundle.min.js
[edit]