KAYAK2U

January 14, 2013

CKEditor 4.0

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…

Add the custom toolbar layout to ckeditor.config.js… 

config.toolbar_WordpressM = [
[‘Blockquote’,’-‘,’Bold’,’Italic’,’Underline’,’Strike’,’-‘,’Subscript’,’Superscript’],
[‘Image’,’Flash’,’Table’,’HorizontalRule’,’SpecialChar’],
[‘Link’,’Unlink’,’Anchor’],
[‘TextColor’,’BGColor’],[‘atd-ckeditor’],[‘Source’]
];

Then, add the option to the SELECT block in ckeditor-for-wordpress/includes/basic.php @ line 58, copying the other entries there.

Then, replace “notSet” in … 

type:”select”,id:”linkTargetType”,label:i.target,”default”:”notSet”

… with “_blank” in ckeditor-for-wordpress/ckeditor/plugins/link/dialogs/link.js.

Finally, to assign a key to the “blockquote” function, head into …ckeditor-for-windows/ckeditor/ckeditor.js and search for “+73” or “italic”.  Duplicate the italic block, then change “73” to “75” (the “K” key) and “italic” to “blockquote”.

[CKEDITOR.CTRL+75,”blockquote”]

And that’s all there ’tis.

p.s. … or not quite.

Hard to believe it was eight years ago I was wrapped up in that short term useless semi-obsession.

Default editors have improved.

MikeSoja - January 14, 2013 -- 01:34 pm    Filed in: Programming  
« Flailing
CKEditor 4.0 with After the Deadline CKEditor spell/grammar plugin »
As Happy As A Clam

Kayak2U.com

msoja RSS 2.0

Other's Pages









Search

Archive

November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  


  • Books4Sale



    Soja's GoodReads Books4Sale Cheap

  • Category Cloud


  • Tag Cloud