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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-conte.../plugins/themify-.../js/editor/componen...
File: undomanager.mjs
};
[500] Fix | Delete
if(sort){
[501] Fix | Delete
for(let i=0;i<sort.length;++i){
[502] Fix | Delete
let r=builder.querySelector('[data-cid="'+sort[i]+'"]');
[503] Fix | Delete
if(i===0){
[504] Fix | Delete
builder.prepend(r);
[505] Fix | Delete
}else{
[506] Fix | Delete
builder.querySelectorAll(':scope>.module_row')[i-1].after(r);
[507] Fix | Delete
}
[508] Fix | Delete
}
[509] Fix | Delete
}
[510] Fix | Delete
for(let [id,vals] of changes){
[511] Fix | Delete
if(id!=='sort'){
[512] Fix | Delete
let item=vals[mode];
[513] Fix | Delete
if(item!==undefined){
[514] Fix | Delete
let row=item;
[515] Fix | Delete
// register.remove(id,true);
[516] Fix | Delete
if(cid){
[517] Fix | Delete
row=api.Helper.cloneObject(row);
[518] Fix | Delete
loop([row]);
[519] Fix | Delete
}
[520] Fix | Delete
let index=vals.index,
[521] Fix | Delete
oldEl=Registry.get(id)?.el,
[522] Fix | Delete
r = new api.Row(row);
[523] Fix | Delete
ids.add(id);
[524] Fix | Delete
for(let cids=r.el.querySelectorAll('[data-cid]'),i=cids.length-1;i>-1;--i){
[525] Fix | Delete
ids.add(cids[i].dataset.cid);
[526] Fix | Delete
}
[527] Fix | Delete
if(index!==undefined){
[528] Fix | Delete
if(index===0){
[529] Fix | Delete
builder.prepend(r.el);
[530] Fix | Delete
}else{
[531] Fix | Delete
builder.querySelectorAll(':scope>.module_row')[index-1].after(r.el);
[532] Fix | Delete
}
[533] Fix | Delete
}
[534] Fix | Delete
else{
[535] Fix | Delete
oldEl?.replaceWith(r.el);
[536] Fix | Delete
}
[537] Fix | Delete
[538] Fix | Delete
rows.add(r.el);
[539] Fix | Delete
}
[540] Fix | Delete
else {
[541] Fix | Delete
Registry.remove(id);
[542] Fix | Delete
}
[543] Fix | Delete
}
[544] Fix | Delete
}
[545] Fix | Delete
if(ids.size>0){
[546] Fix | Delete
if(api.isVisual){
[547] Fix | Delete
await api.bootstrap(ids.keys(),undefined,false);
[548] Fix | Delete
for(let el of rows){
[549] Fix | Delete
api.Utils.runJs(el, 'row');
[550] Fix | Delete
}
[551] Fix | Delete
}
[552] Fix | Delete
if(cid && ids.has(cid)){
[553] Fix | Delete
api.activeModel=Registry.get(cid);
[554] Fix | Delete
if(api.isVisual){
[555] Fix | Delete
api.liveStylingInstance.el=api.activeModel.el;
[556] Fix | Delete
api.liveStylingInstance.model=api.activeModel;
[557] Fix | Delete
}
[558] Fix | Delete
if(rowSizes){
[559] Fix | Delete
ThemifyConstructor.grid.set(rowSizes);
[560] Fix | Delete
rowSizes=null;
[561] Fix | Delete
}
[562] Fix | Delete
loop=type=cid=null;
[563] Fix | Delete
//api.activeModel.visualPreview?.(settings);
[564] Fix | Delete
}
[565] Fix | Delete
}
[566] Fix | Delete
}
[567] Fix | Delete
};
[568] Fix | Delete
[569] Fix | Delete
Themify.on('tb_toolbar_loaded',()=>{
[570] Fix | Delete
const toolbarEl=api.ToolBar.el;
[571] Fix | Delete
new api.undoManager(toolbarEl.tfClass('undo')[0],toolbarEl.tfClass('redo')[0],toolbarEl.tfClass('compact_undo')[0]);
[572] Fix | Delete
},true,api.ToolBar?.isLoaded===true);
[573] Fix | Delete
[574] Fix | Delete
})(tb_app,topWindowDoc,_CLICK_);
[575] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function