简体   繁体   中英

how to add rel attribute in insertlink popup of tinymce editor

I want to know how to add rel attribute in insertlink popup of tinymce editor.

here is a link showing only four attributes in popup 1 URL 2 Text to display 3 Title 4 Target

i want rel attribute also to be in popup

The link plugin has a configuration option to address this:

https://www.tinymce.com/docs/plugins/link/#rel_list

For example:

tinymce.init({
    ...
    rel_list: [
            {title: 'Lightbox', value: 'lightbox'},
            {title: 'Table of contents', value: 'toc'}
    ],
    ...
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM