{"id":2123,"date":"2011-10-30T12:14:21","date_gmt":"2011-10-30T16:14:21","guid":{"rendered":"http:\/\/www.kayak2u.com\/blog\/?p=2123"},"modified":"2013-01-14T13:34:11","modified_gmt":"2013-01-14T18:34:11","slug":"ckeditor-3-6-2-1","status":"publish","type":"post","link":"http:\/\/www.kayak2u.com\/?p=2123","title":{"rendered":"CKEditor 3.6.2.1"},"content":{"rendered":"<p>Somehow I missed several iterations of updates to the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/ckeditor-for-wordpress\/installation\/\" target=\"_blank\">CKEditor<\/a> plugin, and much has changed. &nbsp;As usual, the source files need a tweak or three to bring things into personal alignment.<\/p>\n<p>While the toolbar layout is customizable, the provided method involves overwriting the existing options. &nbsp;However, one can create a <em>new<\/em> toolbar by adding an option to the select block in &#8230;ckeditor-for-wordpress\/includes\/basic.php at line 50. &nbsp;Then create a toolbar of the same name in &#8230;ckeditor-for-wordpress\/ckeditor.config.js with the buttons the way you want them, preserving the default toolbars. &nbsp;Select your custom toolbar in the CKEditor &quot;Basic Settings&quot; admin form.<\/p>\n<p>To change the default &quot;target&quot; in the &quot;Link&quot; popup (so links will <em>default<\/em> to opening in a new tab or window), change the &quot;notSet&quot; in &quot;id:&#39;linkTargetType&#39;,label:D.target,&#39;default&#39;:&#39;notSet&#39;&quot; to &quot;_blank&quot; in &#8230;ckeditor-for-wordpress\/ckeditor\/plugins\/link\/dialogs\/link.js.<\/p>\n<p>Finally, to assign a key to the &quot;blockquote&quot; function, head into &#8230;ckeditor-for-windows\/ckeditor\/ckeditor.js and search for &quot;+73&quot; or &quot;italic&quot;. &nbsp;Duplicate the italic block, then change &quot;73&quot; to &quot;75&quot; (the &quot;K&quot; key) and &quot;italic&quot; to &quot;blockquote&quot;.<\/p>\n<p>Now, if only there were a way to assign Ctrl-S to the WordPress &quot;Save Draft&quot; button.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Somehow I missed several iterations of updates to the CKEditor plugin, and much has changed. &nbsp;As usual, the source files need a tweak or three to bring things into personal alignment. While the toolbar layout is customizable, the provided method involves overwriting the existing options. &nbsp;However, one can create a new toolbar by adding an [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-2123","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/posts\/2123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2123"}],"version-history":[{"count":0,"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/posts\/2123\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2123"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}