• Is it possible to set up the WYSIWYG editor for user comments?

    I’d rather write my own HTML so the editor is disabled, but using it for comments seems like a good idea. I currently have Quicktag buttons on the comment form, but the editor would be more visitor-friendly, I think.

    Any ideas?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter blogesque

    (@blogesque)

    To clarify, I’m talking about the new editor in 2.0.

    There is such a plugin that already exists, which you can find here:

    dev.wp-plugins.org/wiki/LiveCommentPreview

    According to the plugin compatibility page version 1.7 works with the *final* release of 2.0.

    Thread Starter blogesque

    (@blogesque)

    No, that’s not what I mean. I want to set up the comment form to use WP2.0’s internal Rich Editor instead of just a plain-jane text entry box. I think what I’m after would be more of a hack than a plugin.

    Thanks for the suggestion, but that’s just not what I’m looking for.

    My next bit of advice then would be to take a long, deep, loving look into the code for wp-admin/post.php — in particular the #postdivrich element. You’d need to figure out how it uses all its javascript. And you can get cozy using this excellent WordPress coding resource.

    If you do choose to cobble together a plugin I’m sure it’d be very popular… people are utterly enamored of anything that makes their stuff look cooler. And that surely would.

    Actually it proved a lot easier to do then all that. There are a few JS files in the wp-includes/js/ and a few minor changes that have to be done in order to enable it. I wrote a plugin to do it. Requires very little intervention on the administrator’s side. All you have to do is add title=”true” to the comment textarea and activate the plugin. Assuming the comment_form hook hasn’t been messed up in your theme, it should work. At least it has for me.

    I also wrote a plugin that can do just that. It was designed primarily to be used on the post editing area, but people asked me to make it work for the comment form.

    You have the option of using FCKeditor or TinyMCE and different toolbar sets. It includes spell checker support for both interfaces (using ieSpell or Speller Pages if you can use aspell).

    My plugin doesn’t require you to do anything except activate it and enable it for the comments form from the plugin’s options page. Don’t even have to modify the theme files.

    Check it out. It’s called EditorMonkey

    Amusing. I scoured the web looking for a plugin to do just this before breaking down to hack out one from the wp-admin page. I now know about not only Raj’s, but also one by lifesinger here. There really wasn’t any need for mine. *shrug* Oh well, 25 minutes down the drain. 😉

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WYSIWYG editor for Comments?’ is closed to new replies.