Ticket #2627: fck-rel.patch

File fck-rel.patch, 1.8 KB (added by Danial Pearce, 15 years ago)

patch implementing rel attribute in links

  • editor/dialog/fck_link.html

    diff --git a/editor/dialog/fck_link.html b/editor/dialog/fck_link.html
    index 6d69e6e..d9b537c 100755
    a b  
    281281                                                <input id="txtAttCharSet" style="WIDTH: 100%" type="text" />
    282282                                        </td>
    283283                                </tr>
    284                         </table>
    285                         <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
    286284                                <tr>
    287285                                        <td>
    288286                                                <span fckLang="DlgGenStyle">Style</span><br />
    289287                                                <input id="txtAttStyle" style="WIDTH: 100%" type="text" />
    290288                                        </td>
     289                                        <td></td>
     290                                        <td valign="top">
     291                                                <span fckLang="DlgGenRel">Link Relationship</span><br />
     292                                                <input id="txtAttRel" style="WIDTH: 100%" type="text" />
     293                                        </td>
    291294                                </tr>
    292295                        </table>
    293296                </div>
  • editor/dialog/fck_link/fck_link.js

    diff --git a/editor/dialog/fck_link/fck_link.js b/editor/dialog/fck_link/fck_link.js
    index 817b3e1..52c7788 100755
    a b function LoadSelection() 
    474474        GetE('txtAttAccessKey').value   = oLink.accessKey ;
    475475        GetE('txtAttTabIndex').value    = oLink.tabIndex <= 0 ? '' : oLink.tabIndex ;
    476476        GetE('txtAttTitle').value               = oLink.title ;
     477        GetE('txtAttRel').value                 = oLink.rel ;
    477478        GetE('txtAttContentType').value = oLink.type ;
    478479        GetE('txtAttCharSet').value             = oLink.charset ;
    479480
    function Ok() 
    766767                SetAttribute( oLink, 'accesskey', GetE('txtAttAccessKey').value ) ;
    767768                SetAttribute( oLink, 'tabindex' , ( GetE('txtAttTabIndex').value > 0 ? GetE('txtAttTabIndex').value : null ) ) ;
    768769                SetAttribute( oLink, 'title'    , GetE('txtAttTitle').value ) ;
     770                SetAttribute( oLink, 'rel'              , GetE('txtAttRel').value ) ;
    769771                SetAttribute( oLink, 'type'             , GetE('txtAttContentType').value ) ;
    770772                SetAttribute( oLink, 'charset'  , GetE('txtAttCharSet').value ) ;
    771773
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy