Add a class to links in the visual editor (how to get old dialog back)

New:

This is new new Dialog

Read More

Old:

Old wordpress Add link dialog

In short, i want a list of some classes inside the add link dialog. Because this was default there might be a easy way to get it back like this?

Long:
I like to have the ability to add classes to themes. I have found 2 plugins for that. One breaks tinymce and the other add link class plugin produces a hell of a lot notices (with WP_DEBUG enabled) but it works it puts a select box to tiny mce and there i can change classes. But i don’t like it that way. It created span’s when there is no link marked. Back in the days it was just like I want it now. Also there are all sort of wordpress default classes in that dropdown box a also don’t like.

There is this question about it, but no good answers there, the author stated that he found a better way to accomplish his goal but did not bother to share it with us.

Related posts

Leave a Reply

1 comment

  1. 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:

    detail of tinymce configuration screen

    That option will convert the pop-up window of the “Insert/Edit Link” button into this:

    Insert/Edit Link tinymce popup window

    Insert/Edit Link tinymce popup window - advanced tab