GN4 uses CKEditor to edit text in GNPortal and I4.
Adding YouTube plug-in to CKEditor
Save the plugin in the CKEditor plugin folder and then edit the config.js file for the story ckeditor and the config_editarticle.js for the article editor.
Add the plugin name to the config.extraPlugins list and add the button to the config.toolbar_gnportal some where.
Do it once for GN4 and than again for I4.
When the software is updated, you will need to redo all of this as it will put the files back to the default.