{"id":2578,"date":"2013-01-14T13:34:44","date_gmt":"2013-01-14T18:34:44","guid":{"rendered":"http:\/\/www.kayak2u.com\/blog\/?p=2578"},"modified":"2021-01-12T23:41:23","modified_gmt":"2021-01-13T04:41:23","slug":"ckeditor-4-0","status":"publish","type":"post","link":"https:\/\/www.kayak2u.com\/?p=2578","title":{"rendered":"CKEditor 4.0"},"content":{"rendered":"<p>As usual, an upgrade of the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/ckeditor-for-wordpress\/\" target=\"_blank\" rel=\"noopener\">CKEditor<\/a> WordPress plugin leads to tweak needings.<\/p>\n<p>Also, as usual, the CK people changed almost everything, but not unrecognizably so, so modifications proceeded pretty quickly.<\/p>\n<p>The custom toolbar code changed, but the old way still works, so&#8230;<\/p>\n<p>Add the custom toolbar layout to ckeditor.config.js&#8230;\u00a0<\/p>\n<blockquote>\n<p>config.toolbar_WordpressM = [<br \/>[&#8216;Blockquote&#8217;,&#8217;-&#8216;,&#8217;Bold&#8217;,&#8217;Italic&#8217;,&#8217;Underline&#8217;,&#8217;Strike&#8217;,&#8217;-&#8216;,&#8217;Subscript&#8217;,&#8217;Superscript&#8217;],<br \/>[&#8216;Image&#8217;,&#8217;Flash&#8217;,&#8217;Table&#8217;,&#8217;HorizontalRule&#8217;,&#8217;SpecialChar&#8217;],<br \/>[&#8216;Link&#8217;,&#8217;Unlink&#8217;,&#8217;Anchor&#8217;],<br \/>[&#8216;TextColor&#8217;,&#8217;BGColor&#8217;],[&#8216;atd-ckeditor&#8217;],[&#8216;Source&#8217;]<br \/>];<\/p>\n<\/blockquote>\n<p>Then, add the option to the SELECT block in ckeditor-for-wordpress\/includes\/basic.php @ line 58, copying the other entries there.<\/p>\n<p>Then, replace &#8220;notSet&#8221; in &#8230;\u00a0<\/p>\n<blockquote>\n<p>type:&#8221;select&#8221;,id:&#8221;linkTargetType&#8221;,label:i.target,&#8221;default&#8221;:&#8221;notSet&#8221;<\/p>\n<\/blockquote>\n<p>&#8230; with &#8220;_blank&#8221; in ckeditor-for-wordpress\/ckeditor\/plugins\/link\/dialogs\/link.js.<\/p>\n<p>Finally, to assign a key to the &#8220;blockquote&#8221; function, head into &#8230;ckeditor-for-windows\/ckeditor\/ckeditor.js and search for &#8220;+73&#8221; or &#8220;italic&#8221;. \u00a0Duplicate the italic block, then change &#8220;73&#8221; to &#8220;75&#8221; (the &#8220;K&#8221; key) and &#8220;italic&#8221; to &#8220;blockquote&#8221;.<\/p>\n<blockquote>\n<p>[CKEDITOR.CTRL+75,&#8221;blockquote&#8221;]<\/p>\n<\/blockquote>\n<p>And that&#8217;s all there &#8217;tis.<\/p>\n<p>p.s. &#8230; or not quite.<\/p>\n<p>Hard to believe it was eight years ago I was wrapped up in that short term useless semi-obsession.<\/p>\n<p>Default editors <em>have<\/em> improved.<\/p>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As usual, an upgrade of the CKEditor WordPress plugin leads to tweak needings. Also, as usual, the CK people changed almost everything, but not unrecognizably so, so modifications proceeded pretty quickly. The custom toolbar code changed, but the old way still works, so&#8230; Add the custom toolbar layout to ckeditor.config.js&#8230;\u00a0 config.toolbar_WordpressM = [[&#8216;Blockquote&#8217;,&#8217;-&#8216;,&#8217;Bold&#8217;,&#8217;Italic&#8217;,&#8217;Underline&#8217;,&#8217;Strike&#8217;,&#8217;-&#8216;,&#8217;Subscript&#8217;,&#8217;Superscript&#8217;],[&#8216;Image&#8217;,&#8217;Flash&#8217;,&#8217;Table&#8217;,&#8217;HorizontalRule&#8217;,&#8217;SpecialChar&#8217;],[&#8216;Link&#8217;,&#8217;Unlink&#8217;,&#8217;Anchor&#8217;],[&#8216;TextColor&#8217;,&#8217;BGColor&#8217;],[&#8216;atd-ckeditor&#8217;],[&#8216;Source&#8217;]]; Then, add [&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-2578","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/posts\/2578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2578"}],"version-history":[{"count":0,"href":"https:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/posts\/2578\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}