New Editor Is Go Comment Count

Brian

So I was painstakingly replacing all the <span> tags in Tom's latest diary and I thought to myself "self, surely there must be a better way to do this." Last time I checked, there wasn't. But some googling and pleasant surprise later, there is a better way. I've replaced the existing editor (YUI, if you care) with the latest version of CKEditor.

The killer app: take your nastiest Word document and c&p it into a diary post. You will note a distinct lack of weird fonts and start fragment/end fragment pairs. Ding dong. Ding dong indeed.

Other new stuff:

  • Undo/redo.
  • Spellchecking as you go.
  • Search and replace.
  • A "maximize" mode.

There will be bugs and annoyances. The primary one I can see right now: embedding video has to be done in the plain text editor. I can shut the thing off for comments if people think that's the best idea. Let me know if you hate certain things and I'll set about considering them.

UPDATE: Ha-ha! Not really. It looks like it pastes beautifully, but that's just a tease. It loses your comment entirely. Sigh. That's a problem outside of the scope of the site; I am attempting to get it fixed.

Comments

Rasmus

April 28th, 2010 at 7:18 AM ^

Not sure, but Preview may not be a function of the text editor. [I think it might be part of the content management system.] If so, then those problems will not have changed. 

I always assumed Preview only worked in Windows and Internet Explorer (I don't have either). Is that right?

zlionsfan

April 28th, 2010 at 8:28 PM ^

because I don't use IE unless I'm on a site that a) is an absolute requirement and b) absolutely will not function in other browsers.

+1 for FCKeditor. I've used it in areas on intranets before, it's really easy to hook into ColdFusion (as well as other languages, that's just what I was using) and the toolbars are pretty easy to customize.

Sambojangles

April 27th, 2010 at 10:53 PM ^

Probably impossible, but is there a way to disable this to posts that have been negged? Some posts should be in plain text only.

On the other hand, some MGoMeltdowns would be much better with bigger fonts.

formerlyanonymous

April 27th, 2010 at 11:04 PM ^

In the old editor, it used to do something similar. If you pasted, went to the plain editor, then switched back to the rich editor, it would save. If you just pasted, it wouldn't save any changes.

Seth

April 28th, 2010 at 2:13 PM ^

Either you're joking, or you've never heard of Lorem ipsum. It's standard filler text.

Even though using "lorem ipsum" often arouses curiosity because of its resemblance to classical Latin, it is not intended to have meaning. Where text is visible in a document, people tend to focus on the textual content rather than upon overall presentation, so publishers use lorem ipsum when displaying a typeface or design elements and page layout in order to direct the focus to the publication style and not the meaning of the text.

We got a girl in my office who can recite the entire first two paragraphs of Lorem ipsum dolor sit amet...

Rasmus

April 28th, 2010 at 7:10 AM ^

It's standards-compliant, so there shouldn't be any issues in Mac OS X (i.e., Safari, Firefox, Chrome). TomVH will be good on his iMac...

Seth

April 28th, 2010 at 9:25 AM ^

If you can fix the "can't C&P from Word into ANYTHING" problem, you would be an Internet hero at the level of the guy who invented jpegs, or OpenOffice.org.

By the way, you can C&P from OpenOffice writer, since it publishes in -- get this -- html instead of, you know, a proprietary Microsoft language.