Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/themify-.../js/editor/modules
File: plain-text.mjs
(api => {
[0] Fix | Delete
"use strict";
[1] Fix | Delete
api.ModulePlainText = class extends api.Module {
[2] Fix | Delete
constructor(fields) {
[3] Fix | Delete
super(fields);
[4] Fix | Delete
}
[5] Fix | Delete
static getOptions() {
[6] Fix | Delete
return [
[7] Fix | Delete
{
[8] Fix | Delete
id: 'plain_text',
[9] Fix | Delete
type: 'textarea',
[10] Fix | Delete
codeeditor: 'htmlmixed',
[11] Fix | Delete
control: {
[12] Fix | Delete
selector: '.tb_text_wrap'
[13] Fix | Delete
}
[14] Fix | Delete
},
[15] Fix | Delete
{
[16] Fix | Delete
id: 'formatting',
[17] Fix | Delete
type: 'toggle_switch',
[18] Fix | Delete
label: 'contfrmt',
[19] Fix | Delete
default: 'on',
[20] Fix | Delete
options: {
[21] Fix | Delete
on: {
[22] Fix | Delete
name: '',
[23] Fix | Delete
value: 'en'
[24] Fix | Delete
},
[25] Fix | Delete
off: {
[26] Fix | Delete
name: '1',
[27] Fix | Delete
value: 'dis'
[28] Fix | Delete
}
[29] Fix | Delete
},
[30] Fix | Delete
help: 'contfrmth'
[31] Fix | Delete
},
[32] Fix | Delete
{
[33] Fix | Delete
type: 'custom_css_id',
[34] Fix | Delete
custom_css: 'add_css_text'
[35] Fix | Delete
}
[36] Fix | Delete
];
[37] Fix | Delete
}
[38] Fix | Delete
static builderSave(settings){
[39] Fix | Delete
for(let bps=api.breakpointsReverse,i=bps.length-1;i>-1;--i){
[40] Fix | Delete
let bp=bps[i];
[41] Fix | Delete
//Image Gradient
[42] Fix | Delete
this.clearImageGradient('background_image','background_color','background_repeat','background_position',bp,settings);
[43] Fix | Delete
this.clearImageGradient('b_i_h','bg_c_h','b_r_h','b_p_h',bp,settings);
[44] Fix | Delete
//Font color
[45] Fix | Delete
this.clearFontColor('font_color_type','font_color','font_gradient_color',bp,settings);
[46] Fix | Delete
this.clearFontColor('f_c_t_h','f_c_h','f_g_c_h',bp,settings);
[47] Fix | Delete
//Text Shadow
[48] Fix | Delete
this.clearShadow('t_sh_h',0,bp,settings);
[49] Fix | Delete
this.clearShadow('t_sh_h_h',0,bp,settings);
[50] Fix | Delete
//paddings
[51] Fix | Delete
this.clearPadding('padding',bp,settings);
[52] Fix | Delete
this.clearPadding('p_h',bp,settings);
[53] Fix | Delete
//margin
[54] Fix | Delete
this.clearPadding('margin',bp,settings);
[55] Fix | Delete
this.clearPadding('m_h',bp,settings);
[56] Fix | Delete
//border-radius
[57] Fix | Delete
this.clearPadding('b_ra',bp,settings);
[58] Fix | Delete
this.clearPadding('r_c_h',bp,settings);
[59] Fix | Delete
//border
[60] Fix | Delete
this.clearBorder('border',bp,settings);
[61] Fix | Delete
this.clearBorder('b_h',bp,settings);
[62] Fix | Delete
//filters
[63] Fix | Delete
this.clearFilter('bl_m','css_f',bp,settings);
[64] Fix | Delete
this.clearFilter('_h','css_f_h',bp,settings);
[65] Fix | Delete
//width,height
[66] Fix | Delete
this.clearWidth('w',bp,settings);
[67] Fix | Delete
this.clearWidth('ht',bp,settings,1);
[68] Fix | Delete
//Box Shadow
[69] Fix | Delete
this.clearShadow('b_sh',1,bp,settings);
[70] Fix | Delete
this.clearShadow('sh_h',1,bp,settings);
[71] Fix | Delete
//position
[72] Fix | Delete
this.clearPosition('po',bp,settings);
[73] Fix | Delete
//transform
[74] Fix | Delete
this.clearTransform('tr',bp,settings);
[75] Fix | Delete
this.clearTransform('tr-h',bp,settings);
[76] Fix | Delete
}
[77] Fix | Delete
super.builderSave(settings);
[78] Fix | Delete
}
[79] Fix | Delete
getExcerpt(data) {
[80] Fix | Delete
const setting = data || this.get('mod_settings');
[81] Fix | Delete
return api.Helper.limitString(setting.plain_text);
[82] Fix | Delete
}
[83] Fix | Delete
preview(data) {
[84] Fix | Delete
const module = createElement(),
[85] Fix | Delete
content = this.constructor._setEditableContent(createElement('','tb_text_wrap'),'plain_text','',1),
[86] Fix | Delete
classes = ['module', 'module-plain-text'],
[87] Fix | Delete
html = data.plain_text;
[88] Fix | Delete
if (data.add_css_text) {
[89] Fix | Delete
classes.push(data.add_css_text);
[90] Fix | Delete
}
[91] Fix | Delete
module.className = classes.join(' ');
[92] Fix | Delete
if(html){
[93] Fix | Delete
content.innerHTML = this.shortcodeToHTML(html).content;
[94] Fix | Delete
}
[95] Fix | Delete
module.appendChild(content);
[96] Fix | Delete
return module;
[97] Fix | Delete
}
[98] Fix | Delete
};
[99] Fix | Delete
})(tb_app);
[100] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function