How do I remove or disable “Or link to existing content” in “insert link” dialogue?

Don’t ask why. Image below pretty much ask what I’m looking to achieve:

screenshot

Solutions Collecting From Web of "How do I remove or disable “Or link to existing content” in “insert link” dialogue?"

We could hook into the after_wp_tiny_mce with some CSS to hide it, if the wplink editor plugin is loaded.

Example:

add_action( 'after_wp_tiny_mce', function( $settings )
{
    // Check for the 'wplink' editor plugin
    if(    isset( $settings['content']['plugins'] ) 
        && false !== strpos( $settings['content']['plugins'], 'wplink' ) 
    )
        echo '<style>
                  #link-selector > .howto, #link-selector > #search-panel { display:none; }
        </style>';
} );

Place this code in your functions.php file

add_action( 'admin_print_scripts-post.php',     'wpse22643_overwrite_wplinks' );
add_action( 'admin_print_scripts-post-new.php', 'wpse22643_overwrite_wplinks' );

function wpse22643_overwrite_wplinks( $hook ) {

    // register is important, that other plugins will change or deactivate this
    wp_register_script(
        'overwrite-wplinks', 
        get_stylesheet_directory_uri() . '/js/overwrite-wplinks.js',
        array( 'jquery' ),
        '',
        TRUE
    );
    wp_enqueue_script( 'overwrite-wplinks' );
}

Double check the path to the js file you want to include above (/js/overwrite-wplinks.js). Then place the following code in the above mentioned js file.

( function( $ ) {

   if ( typeof wpLink == 'undefined' )
       return;

   wpLink.setDefaultValues = function () { 

   $('#link-selector p:nth-child(2).howto').css('display','none');

  };

} )( jQuery );

I found this code some ones blog but it worked for me , Solved my problem

add_action( 'after_wp_tiny_mce', function( $settings )
{
    // Check for the 'wplink' editor plugin
    if(    isset( $settings['content']['plugins'] )
        && false !== strpos( $settings['content']['plugins'], 'wplink' )
    )
        echo '<style>
                  #link-selector > .howto, #link-selector > #search-panel { display:none; }
        </style>';
} );