Submit
Path:
~
/
home
/
contenidosenred
/
www
/
ondemand
/
wp-content
/
plugins
/
elementor
/
assets
/
js
/
File Content:
text-editor.a8434931ecdcd5ff7589.bundle.js
/*! elementor - v3.4.6 - 19-10-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
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
06ad222c8807f0a951da.bundle.js
279653 bytes
0644
accordion.5824c4bc9e26d54f2918.bundle.js
7463 bytes
0644
accordion.839112600fade8979d16.bundle.min.js
3690 bytes
0644
admin-feedback.js
30269 bytes
0644
admin-feedback.min.js
7903 bytes
0644
admin-top-bar.js
206966 bytes
0644
admin-top-bar.min.js
40374 bytes
0644
admin.js
234646 bytes
0644
admin.min.js
63104 bytes
0644
alert.124c2442b8a696597f9e.bundle.min.js
623 bytes
0644
alert.f04b9d16129bc8aa4cdc.bundle.js
1139 bytes
0644
app-loader.js
341651 bytes
0644
app-loader.min.js
85010 bytes
0644
app-packages.js
743124 bytes
0644
app-packages.min.js
196021 bytes
0644
app.js
707280 bytes
0644
app.min.js
180452 bytes
0644
beta-tester.js
108670 bytes
0644
beta-tester.min.js
26153 bytes
0644
common-modules.js
409289 bytes
0644
common-modules.min.js
103206 bytes
0644
common.js
659348 bytes
0644
common.min.js
174239 bytes
0644
counter.1bf6011c2ab9506880c2.bundle.min.js
911 bytes
0644
counter.b452600865ffc51a6ea0.bundle.js
1632 bytes
0644
d44a57c594ce7771dd50.bundle.min.js
61427 bytes
0644
editor-document.js
975225 bytes
0644
editor-document.min.js
280218 bytes
0644
editor-modules.js
281867 bytes
0644
editor-modules.min.js
73993 bytes
0644
editor.js
1669873 bytes
0644
editor.min.js
593852 bytes
0644
elementor-admin-bar.js
141097 bytes
0644
elementor-admin-bar.min.js
32240 bytes
0644
frontend-modules.js
34839 bytes
0644
frontend-modules.min.js
14002 bytes
0644
frontend.js
87820 bytes
0644
frontend.min.js
36657 bytes
0644
gutenberg.js
31583 bytes
0644
gutenberg.min.js
8849 bytes
0644
image-carousel.024943eec9daaabea9ff.bundle.js
5835 bytes
0644
image-carousel.f9dc73796adfb21bb945.bundle.min.js
2715 bytes
0644
kit-library.d3688acfaab28676a99c.bundle.js
178777 bytes
0644
kit-library.e61c291a7b6bbc946eeb.bundle.min.js
53678 bytes
0644
lightbox.543c64a356c981ed0346.bundle.min.js
18446 bytes
0644
lightbox.adc17e3be937246718ee.bundle.js
32886 bytes
0644
new-template.js
4659 bytes
0644
new-template.min.js
1864 bytes
0644
preloaded-modules.js
63351 bytes
0644
preloaded-modules.min.js
32273 bytes
0644
progress.4079971c3240c226b858.bundle.min.js
654 bytes
0644
progress.5306267e0436c8de4985.bundle.js
1237 bytes
0644
tabs.b7bd957161644e810d53.bundle.js
7390 bytes
0644
tabs.cd05b61e107cc58d1be9.bundle.min.js
3652 bytes
0644
text-editor.9efe2dca043f0f618897.bundle.min.js
1355 bytes
0644
text-editor.a8434931ecdcd5ff7589.bundle.js
2844 bytes
0644
text-path.15daa9710b97d5cf86b9.bundle.min.js
2780 bytes
0644
text-path.9b3ece1b692d34d012b5.bundle.js
6841 bytes
0644
toggle.1aca60f44e355cb43256.bundle.min.js
3717 bytes
0644
toggle.5e8aae8d1c1e897e9b4e.bundle.js
7494 bytes
0644
video.505da250f982d8f15187.bundle.min.js
3324 bytes
0644
video.509fb0e07b97e0f603d7.bundle.js
6634 bytes
0644
webpack.runtime.js
15213 bytes
0644
webpack.runtime.min.js
4879 bytes
0644
wp-audio.2332b719d144261993a3.bundle.min.js
348 bytes
0644
wp-audio.de344657de8b792ed9b0.bundle.js
777 bytes
0644
N4ST4R_ID | Naxtarrr