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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/tinymce/plugins/wplink
File: plugin.js
// Returns a jQuery object containing the menu element.
[500] Fix | Delete
.autocomplete( 'widget' )
[501] Fix | Delete
.addClass( 'wplink-autocomplete' )
[502] Fix | Delete
.attr( 'role', 'listbox' )
[503] Fix | Delete
.removeAttr( 'tabindex' ) // Remove the `tabindex=0` attribute added by jQuery UI.
[504] Fix | Delete
/*
[505] Fix | Delete
* Looks like Safari and VoiceOver need an `aria-selected` attribute. See ticket #33301.
[506] Fix | Delete
* The `menufocus` and `menublur` events are the same events used to add and remove
[507] Fix | Delete
* the `ui-state-focus` CSS class on the menu items. See jQuery UI Menu Widget.
[508] Fix | Delete
*/
[509] Fix | Delete
.on( 'menufocus', function( event, ui ) {
[510] Fix | Delete
ui.item.attr( 'aria-selected', 'true' );
[511] Fix | Delete
})
[512] Fix | Delete
.on( 'menublur', function() {
[513] Fix | Delete
/*
[514] Fix | Delete
* The `menublur` event returns an object where the item is `null`
[515] Fix | Delete
* so we need to find the active item with other means.
[516] Fix | Delete
*/
[517] Fix | Delete
$( this ).find( '[aria-selected="true"]' ).removeAttr( 'aria-selected' );
[518] Fix | Delete
});
[519] Fix | Delete
}
[520] Fix | Delete
[521] Fix | Delete
tinymce.$( input ).on( 'keydown', function( event ) {
[522] Fix | Delete
if ( event.keyCode === 13 ) {
[523] Fix | Delete
editor.execCommand( 'wp_link_apply' );
[524] Fix | Delete
event.preventDefault();
[525] Fix | Delete
}
[526] Fix | Delete
} );
[527] Fix | Delete
}
[528] Fix | Delete
} );
[529] Fix | Delete
[530] Fix | Delete
editor.on( 'wptoolbar', function( event ) {
[531] Fix | Delete
var linkNode = editor.dom.getParent( event.element, 'a' ),
[532] Fix | Delete
$linkNode, href, edit;
[533] Fix | Delete
[534] Fix | Delete
if ( typeof window.wpLink !== 'undefined' && window.wpLink.modalOpen ) {
[535] Fix | Delete
editToolbar.tempHide = true;
[536] Fix | Delete
return;
[537] Fix | Delete
}
[538] Fix | Delete
[539] Fix | Delete
editToolbar.tempHide = false;
[540] Fix | Delete
[541] Fix | Delete
if ( linkNode ) {
[542] Fix | Delete
$linkNode = editor.$( linkNode );
[543] Fix | Delete
href = $linkNode.attr( 'href' );
[544] Fix | Delete
edit = $linkNode.attr( 'data-wplink-edit' );
[545] Fix | Delete
[546] Fix | Delete
if ( href === '_wp_link_placeholder' || edit ) {
[547] Fix | Delete
if ( href !== '_wp_link_placeholder' && ! inputInstance.getURL() ) {
[548] Fix | Delete
inputInstance.setURL( href );
[549] Fix | Delete
}
[550] Fix | Delete
[551] Fix | Delete
event.element = linkNode;
[552] Fix | Delete
event.toolbar = editToolbar;
[553] Fix | Delete
} else if ( href && ! $linkNode.find( 'img' ).length ) {
[554] Fix | Delete
previewInstance.setURL( href );
[555] Fix | Delete
event.element = linkNode;
[556] Fix | Delete
event.toolbar = toolbar;
[557] Fix | Delete
[558] Fix | Delete
if ( $linkNode.attr( 'data-wplink-url-error' ) === 'true' ) {
[559] Fix | Delete
toolbar.$el.find( '.wp-link-preview a' ).addClass( 'wplink-url-error' );
[560] Fix | Delete
} else {
[561] Fix | Delete
toolbar.$el.find( '.wp-link-preview a' ).removeClass( 'wplink-url-error' );
[562] Fix | Delete
hasLinkError = false;
[563] Fix | Delete
}
[564] Fix | Delete
}
[565] Fix | Delete
} else if ( editToolbar.visible() ) {
[566] Fix | Delete
editor.execCommand( 'wp_link_cancel' );
[567] Fix | Delete
}
[568] Fix | Delete
} );
[569] Fix | Delete
[570] Fix | Delete
editor.addButton( 'wp_link_edit', {
[571] Fix | Delete
tooltip: 'Edit|button', // '|button' is not displayed, only used for context.
[572] Fix | Delete
icon: 'dashicon dashicons-edit',
[573] Fix | Delete
cmd: 'WP_Link'
[574] Fix | Delete
} );
[575] Fix | Delete
[576] Fix | Delete
editor.addButton( 'wp_link_remove', {
[577] Fix | Delete
tooltip: 'Remove link',
[578] Fix | Delete
icon: 'dashicon dashicons-editor-unlink',
[579] Fix | Delete
cmd: 'wp_unlink'
[580] Fix | Delete
} );
[581] Fix | Delete
[582] Fix | Delete
editor.addButton( 'wp_link_advanced', {
[583] Fix | Delete
tooltip: 'Link options',
[584] Fix | Delete
icon: 'dashicon dashicons-admin-generic',
[585] Fix | Delete
onclick: function() {
[586] Fix | Delete
if ( typeof window.wpLink !== 'undefined' ) {
[587] Fix | Delete
var url = inputInstance.getURL() || null,
[588] Fix | Delete
text = inputInstance.getLinkText() || null;
[589] Fix | Delete
[590] Fix | Delete
window.wpLink.open( editor.id, url, text );
[591] Fix | Delete
[592] Fix | Delete
editToolbar.tempHide = true;
[593] Fix | Delete
editToolbar.hide();
[594] Fix | Delete
}
[595] Fix | Delete
}
[596] Fix | Delete
} );
[597] Fix | Delete
[598] Fix | Delete
editor.addButton( 'wp_link_apply', {
[599] Fix | Delete
tooltip: 'Apply',
[600] Fix | Delete
icon: 'dashicon dashicons-editor-break',
[601] Fix | Delete
cmd: 'wp_link_apply',
[602] Fix | Delete
classes: 'widget btn primary'
[603] Fix | Delete
} );
[604] Fix | Delete
[605] Fix | Delete
return {
[606] Fix | Delete
close: function() {
[607] Fix | Delete
editToolbar.tempHide = false;
[608] Fix | Delete
editor.execCommand( 'wp_link_cancel' );
[609] Fix | Delete
},
[610] Fix | Delete
checkLink: checkLink
[611] Fix | Delete
};
[612] Fix | Delete
} );
[613] Fix | Delete
} )( window.tinymce );
[614] Fix | Delete
[615] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function