• Resolved Rick Hellewell

    (@rhellewellgmailcom)


    I have modified the comment entry box, with the appropriate WordPress filters, the CKEditor as the interface for my comment boxes. That works fine.

    But when I create a comment, then save it, then use the Edit button to edit the comment, I get a HTML raw code edit box, not the CKEditor that is used for comments in the theme.

    Is there a way to have this plugin use the same editing interface as the ‘regular’ comment editor?

    Note that I asked this question over a year ago, with no answer. Still would like to have this feature.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ronald Huereca

    (@ronalfy)

    @rhellewellgmailcom do you have any code to share for your integration?

    Thread Starter Rick Hellewell

    (@rhellewellgmailcom)

    There’s a whole bunch of code involved; some CKEditor5 JS code, and other stuff. The basics for creating an ‘edit box’ is here https://ckeditor.com/docs/ckeditor5/latest/builds/guides/predefined-builds/quick-start.html#classic-editor .

    You have to register and enqueue the JS codes using the usual WP commands. Then use a script in the area that the comment box is displayed to change the $comment_field in the Comment object. That is enabled with the appropriate filter to change the arguments for the Comment object.

    The comment.php file is used to display the existing comments, and the comment box. That’s what should be used to display this plugin’s comment edit box.

    Plugin Author Ronald Huereca

    (@ronalfy)

    @rhellewellgmailcom,

    Thanks for that. I did take a look and it seems pretty intense. I’ll consider adding this in to the pro version as I’d prefer to be able to control both the comment form and edit form together.

    I’m going to mark this as a feature request. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using Editor Used by Comment Box’ is closed to new replies.