KAYAK2U

October 30, 2011

CKEditor 3.6.2.1

Somehow I missed several iterations of updates to the CKEditor plugin, and much has changed.  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.  However, one can create a new toolbar by adding an option to the select block in …ckeditor-for-wordpress/includes/basic.php at line 50.  Then create a toolbar of the same name in …ckeditor-for-wordpress/ckeditor.config.js with the buttons the way you want them, preserving the default toolbars.  Select your custom toolbar in the CKEditor "Basic Settings" admin form.

To change the default "target" in the "Link" popup (so links will default to opening in a new tab or window), change the "notSet" in "id:'linkTargetType',label:D.target,'default':'notSet'" to "_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".

Now, if only there were a way to assign Ctrl-S to the WordPress "Save Draft" button.

MikeSoja - October 30, 2011 -- 12:14 pm    Filed in: Programming  
« Occupiers hatin’ homeless people
Cost benefit »
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