0

I'm using the plugin TinyMCE Advanced and would like to achive a "link_class_list" to the editor when inserting a link. I tried a hundred things, but can't seem to get this work with the main (content) editor. I already set the TinyMCE Advanced link option to 'Other dialog to create/change links' on the settings page. Maybe it's a wrong selector, I really have no clue..

tinymce.init({
    selector: "#content",
    plugins: "link",
    menubar: "insert",
    toolbar: "link",
    link_class_list: [
        [{title: 'None', value: ''},
        {title: 'Button (primary)', value: 'btn btn-primary'},
        {title: 'Button (secondary)', value: 'btn btn-secondary'},
        {title: 'Button (default)', value: 'btn btn-default'}]
    ]
});

Any help would be very much appreciated!

0

I understand the alternative, but I'm looking for a direct way to do this within the "Link dialog". See the image below.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.