{"id":611,"date":"2010-08-25T07:21:35","date_gmt":"2010-08-25T06:21:35","guid":{"rendered":"http:\/\/www.dotmana.com\/index.php\/?p=611"},"modified":"2010-08-25T07:21:35","modified_gmt":"2010-08-25T06:21:35","slug":"add-rel-field-attribute-in-fckeditor-when-editing-link-attribute","status":"publish","type":"post","link":"http:\/\/www.dotmana.com\/weblog\/2010\/08\/add-rel-field-attribute-in-fckeditor-when-editing-link-attribute\/","title":{"rendered":"Add rel field attribute in FCKEditor when editing link attribute"},"content":{"rendered":"<p><strong>In fckeditor\/fckeditor\/editor\/dialog\/fck_link\/fck_link.js, add the following:<\/strong><\/p>\n<blockquote><p>\n[469] \/\/ Get Advances Attributes<br \/>\nGetE(&#8216;txtAttRelation&#8217;).value = oLink.rel ;<br \/>\n&#8230;<br \/>\n[764] \/\/ Advances Attributes<br \/>\nSetAttribute( oLink, &#8216;rel&#8217; , GetE(&#8216;txtAttRelation&#8217;).value ) ;<br \/>\n&#8230;<\/p><\/blockquote>\n<p><strong>And in fckeditor\/fckeditor\/editor\/dialog\/fck_link.html, add the following:<\/strong><\/p>\n<blockquote><p><strong><br \/>\n<\/strong><\/p><\/blockquote>\n<blockquote><p>&lt;table cellspacing=&#8221;0&#8243; cellpadding=&#8221;0&#8243; width=&#8221;100%&#8221; align=&#8221;center&#8221; border=&#8221;0&#8243;&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;<br \/>\n&lt;span fckLang=&#8221;DlgGenRel&#8221;&gt;Relation&lt;\/span&gt;&lt;br \/&gt;<br \/>\n&lt;input id=&#8221;txtAttRelation&#8221; style=&#8221;WIDTH: 100%&#8221; type=&#8221;text&#8221; \/&gt;<br \/>\n&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;\/table&gt;<\/p><\/blockquote>\n<p><strong>In fckeditor\/fckeditor\/editor\/lang &gt; your language file.<\/strong><\/p>\n<blockquote><p>\nIn &#8220;\/\/ General Dialogs Labels&#8221;, put something like:<br \/>\nDlgGenRel : &#8220;Rel-tag&#8221;,<\/p><\/blockquote>\n<p><a href=\"http:\/\/drupal.org\/node\/277608\" target=\"_blank\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In fckeditor\/fckeditor\/editor\/dialog\/fck_link\/fck_link.js, add the following: [469] \/\/ Get Advances Attributes GetE(&#8216;txtAttRelation&#8217;).value = oLink.rel ; &#8230; [764] \/\/ Advances Attributes SetAttribute( oLink, &#8216;rel&#8217; , GetE(&#8216;txtAttRelation&#8217;).value ) ; &#8230; And in fckeditor\/fckeditor\/editor\/dialog\/fck_link.html, add the following: &lt;table cellspacing=&#8221;0&#8243; cellpadding=&#8221;0&#8243; width=&#8221;100%&#8221; align=&#8221;center&#8221; border=&#8221;0&#8243;&gt; &lt;tr&gt; &hellip; <a href=\"http:\/\/www.dotmana.com\/weblog\/2010\/08\/add-rel-field-attribute-in-fckeditor-when-editing-link-attribute\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-611","post","type-post","status-publish","format-standard","hentry","category-dev"],"_links":{"self":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/comments?post=611"}],"version-history":[{"count":1,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/611\/revisions"}],"predecessor-version":[{"id":612,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/611\/revisions\/612"}],"wp:attachment":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/media?parent=611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/categories?post=611"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/tags?post=611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}