Did you ever figure this out?
I need this too!! Someone figured this out?
Anyone figure this one out?
Remove node with Javascript (jQuery)
$('#internal-toggle').remove();
Dirty but works
frendeliko, could you please provide a little more detail as to how you implemented this? I haven’t worked with JS yet!
I found a way using TinyMCE Advanced plugin, and selecting the “Advanced Link” option, but now it seems I must run the editor in Teeny mode, which doesnt use the setting of this plugin!
Thanks in advance!
In your functions.php you should register a script file like this:
function mytheme_register_scripts() {
wp_register_script(
'custom',
get_template_directory_uri() . "/js/custom.js",
array('jquery'),
'1.0',
true
);
}
add_action( 'init', 'mytheme_register_scripts' );
Then in your theme folder make a folder called js and inside create a file called custom.js with the following content:
jQuery(document).ready(function($){
$('#internal-toggle').remove();
};
Hope this helps!