CKEditor (formerly FCKEditor) is one of the best WYSIWYG editors. In fact, some of us within TMC have had an affectionate nickname for the old name due to it sounding very close to something X-rated. Dropping the 'F' (bomb?) might explain why they renamed it to CKEditor.
One of my pet peeves when using our old FCKEditor is that the Paste from Word is useless since it doesn't strip out all the extra crap that Microsoft Word puts into the Clipboard. Well, I tried out the new CKEditor on Movable Type and finally this feature works! I'm a straight HTML-kinda guy, so I never paste from Word into the (F)CKEditor, but my boss Rich Tehrani swears by it. I've seen him paste into FCKEditor then have to click View Source button and clean up all the gobbledygook by hand. It ain't pretty. Not very efficient either. All that work just to retain some hyperlinks and formatting? I tried telling Rich "Notepad and handcoding HTML tags FTW! (For the Win!)", but he wasn't buying it. Part of my job as CTO is making sure TMC team members are productive. It pains me to see Rich being so inefficient and he ain't learning straight HTML code anytime soon.
So anywho, it's been awhile since I've upgraded Movable Type's GUI editor (FCKEditor), so I thought I'd check the new version out. I got it working for MT4.x simply by using the old FCKEditor plugin that David Davis wrote along with some minor code tweaks.
First, I simply downloaded the latest CKEditor from ckeditor.com. Next, I extracted it into the exact same folder as my old FCKEditor plugin folder since I could see the filenames were different by 1 letter (old filenames had 'f' and the new files had no 'f' as the first letter). Thus, I could easily revert to the old version if I wanted with no concern over overwriting the current FCKEditor.
Then I had to rename fck_editor.js to ckeditor.js in mt-static/plugins/FCKeditor/fckeditor/fckeditor.tmpl.
Next, I added a snippet of code below just above this line:
<img src="<$mt:var name="static_uri"$>images/spacer.gif" width="100%" height="10"/>
Code to add:
<script type="text/javascript">
//<![CDATA[
// This call can be placed at any point after the
// <textarea>, or inside a <head><script> in a
// window.onload event handler.
// Replace the <textarea id="editor"> with an CKEditor
// instance, using default configurations.
CKEDITOR.replace( 'editor-content-textarea' );
//]]>
</script>
All this code does is look for the textarea with id=editor-content-textarea and overlay the CKEditor on top. Pretty simple...
Here's the editor in action:
While this works, the only issue I have is that I can't override the Insert Image button that the CKEditor uses. Thus, I lose the awesome MT Asset Manager, which takes care of uploading and managing images.
It should be an easy fix. In the old FCKEditor MT plugin the code to override FCKEditor's InsertImage button was this code inside the fck_editor.js file:
insertImage: function() {
var div = DOM.getElement( "editor-content-enclosure" );
app.openDialog( "__mode=list_assets&_type=asset&edit_field=" + div.getAttribute( "edit-field" )
+ "&blog_id=" + div.getAttribute( "mt:blog-id" ) + "&dialog_view=1&filter=class&filter_val=image" );
Basically, this code launches the MT Asset insert image dialog window. But I'm not sure how to make these changes to the new ckeditor.js, which seems fairly different from fck_editor.js. Alas, Javascript isn't my expertise. If any of you Movable Type fans out there figure it out let me know. I should mention that if you're running Movable Type 5, there is a new CKEditor MT plugin that seamlessly integrates with the new CKEditor (download). Alas, we're still running Movable Type 4 since there are plugin incompatibilities with MT5. So I'd really like to get the new CKEditor running on our MT4.25 install.
android apple asterisk at&t blackberry cell phone cisco dell digium e911 facebook fcc google google talk gps im ip-pbx ipad iphone ipod itexpo ITEXPO lync microsoft mobile phone open source outage phone review sip skype sony unified communications verizon video video conferencing voip vonage wireless xbox 360
- Apple (280)
- Bittorrent (2)
- Call Center and CRM (48)
- Computer Hardware (183)
- Computer Software (71)
- Gadgets (650)
- Google (225)
- Home Entertainment (263)
- Internet (173)
- Linux (111)
- Microsoft (376)
- MovableType (48)
- News (187)
- Personal and Humor (118)
- Politics (9)
- Reviews (246)
- Security (2)
- Social Networking (42)
- Sports/Outdoor Technology (9)
- Tablets (32)
- Technology and Science (355)
- Unified Communications (471)
- VoIP (2285)
- Wireless (584)
- p2p (20)
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- April 2004
- March 2004
Featured Videos