WordPress.org

Ready to get started?Download WordPress

Forums

Dean's FCKEditor For WordPress
hack: rel added to link.js (1 post)

  1. eaposztrof
    Member
    Posted 1 year ago #

    add the code below to the wp-content/plugins/deans-fckeditor-for-wordpress-plugin/ckeditor/plugins/link/dialogs/link.js file, and you have beautiful rel adding <select> on the Create Link dialog. you can find the full code on pastebin. enjoy!

    +	115                H('advRel', 'rel');
    +	248                        id: 'advRel',
                            type: 'select',
                            label: 'The rel attribute specifies the relationship between the current document and the linked document.',
                            'default': 'alternate',
                            style: 'width : 100%;',
                            items: [
                                ['Links to an alternate version of the document (i.e. print page, translated or mirror)','alternate'],
                                ['Links to the author of the document','author'],
                                ['Permanent URL used for bookmarking', 'bookmark'],
                                ['Links to a help document', 'help'],
                                ['Links to copyright information for the document','license'],
                                ['Links to an unendorsed document, like a paid link.','nofollow'],
                                ['Specifies that the browser should not send a HTTP referer header if the user follows the hyperlink','noreferrer'],
                                ['Specifies that the target document should be cached','prefetch'],
                                ['Links to a search tool for the document','search'],
                                ['The previous document in a selection','prev'],
                                ['The next document in a selection', 'next'],
                                ['A tag (keyword) for the current document', 'tag']
                            ],
                            setup: o,
                            commit: r
                    }, {
    +	783                L('advRel', 'rel');

    http://wordpress.org/extend/plugins/fckeditor-for-wordpress-plugin/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic