Add a class to links in the visual editor (how to get old dialog back)
The easiest way is to use the plugin TinyMCE Advanced. Enables the advanced features of TinyMCE, the WordPress WYSIWYG editor. In its configuration page (Settings > TinyMCE Advanced), you’ll find this option: That option will convert the pop-up window of the “Insert/Edit Link” button into this: