Look at that - Xinha4WP works on WordPress 2.0

OK, I admit that I had hoped to have Xinha4WP ready for WordPress 2.0, but other projects and life in general kept me from doing that. I had tried out Xinha4WP on Wordpress 2.0.0 and found it would sort of work but it looked like a lot of work was needed.

I did not have a huge desire to move to WordPress 2.0, mostly because 1.5.x was working for my sites and I had other projects I had to take care of. Well, the time was coming to get to v2.0 - too many cool new things were coming up for 2.0 or higher (the Installer plugin is awesome). So I finally found some time to give the Xinha4WP v2.0 changes a go.

First step was updating my test install to WordPress v2.0.2 and poke around. I’m not 100% sure, but the way they structured the Post HTML made it seem like TinyMCE wasn’t so static as it used to be. In fact it was downright gentle. If ‘Rich Editing’ was enabled it included some JavaScript for the toolbar, but otherwise the textarea tag was left alone - this is a good thing. So on a hunch, I installed Xinha4WP v1.1 and disabled Rich Editing for all users. The Admin user still had Rich Editing set for it, so I disabled it and hit ‘Write’

Voila - Xinha4WP came right up and so far seems to be working like a champ! So if you’ve been wanting to get Xinha4WP working on WordPress v2.0, it looks like you can with WP 2.0.2. I’m still working on a Xinha4WP v2.0 that will make installation seamless and take care of disabling TinyMCE for you, but for now, try this….

  1. Make sure you have WordPress v2.0.2 installed.
  2. Disable ‘Rich Editing’ under Options->Writing. Also make sure any users you have created also have it disabled in their profile.
  3. Ignore the warnings about Text-Control for now. I believe WP 2.0.x is handling the line feed issue better than 1.5.x did - still need to test.
  4. Try to write a post. Xinha4WP works just fine for me here. How about you?

Note: The built in upload tools will only work if Xinha4WP is in HTML View mode. Since Xinha4WP has its own Image Manipulation plugin, I’d suggest using that instead. Xinha4WP v2.0 will strip out the image upload stuff from WordPress for simplicity.

Xinha4WP didn’t work for comments, but that is theme related. v2.0 will include CSS overrides to prevent the theme based issues with comment posting we’ve seen before. So it may work for you for comments, it may not.

So there you have it. It looks like a recent bug fix release of WP made things MUCH easier. I’m off to code. I’m REALLY hoping to have something by this weekend for beta testers. Check the Xinha4WP page for updates. Thanks for your patience!

UPDATE: Make sure you disable toolbar flow!

[Originally posted at baptiste.us - See the original article for comments]



Comments are closed. Use the forums instead.