WordPress.org

Forums

WYSIWYG editor for Comments? (8 posts)

  1. Blogesque
    Member
    Posted 9 years ago #

    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?

  2. Blogesque
    Member
    Posted 9 years ago #

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

  3. Orin
    Member
    Posted 9 years ago #

    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.

  4. Blogesque
    Member
    Posted 9 years ago #

    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.

  5. Orin
    Member
    Posted 9 years ago #

    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.

  6. plurk
    Member
    Posted 9 years ago #

    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.

  7. rajkp
    Member
    Posted 9 years ago #

    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

  8. plurk
    Member
    Posted 9 years ago #

    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. ;)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags