WordPress.org

Ready to get started?Download WordPress

Forums

CKEditor For WordPress
[resolved] v3.6.2 Cannot reply to an existing comment (5 posts)

  1. calfzhou
    Member
    Posted 2 years ago #

    WordPress v3.2 + CKEditor For WordPress v3.6.2. Enable "Use CKEditor as comment editor".

    When viewing a blog post, the CKEditor comment editor works well. But if trying to reply an existing comment, the editor moved to the correct place, but the editing area is not editable (the iframe doesn't load correctly).

    The root cause I guess is that in /plugins/ckeditor-for-wordpress/includes/ckeditor.comment-reply.js, it moved CKEditor node from one place to another (via statement: comm.parentNode.insertBefore(respond, comm.nextSibling);). After that, the main editor structure moved successfully, but the edit box (within an iframe) lose its original state information and is not re-initialized.

    I myself fixed this by modify /plugins/ckeditor-for-wordpress/includes/ckeditor.utils.js function ckeditorOff(id). The first line of this function is:
    [code]if (typeof(id) != 'undefined') editorCKE = CKEDITOR.instances[id];[/code]
    And the second line is:
    [code]if(typeof(editorCKE) != 'undefined'){[/code]
    I inserted a line between these two lines, which is:
    [code]else editorCKE = CKEDITOR.instances[ckeditorSettings.textarea_id];[/code]
    The change makes sure the old CKEDITOR instance will be destroyed (and then it will be re-created within ckeditorOn(id) function).

    http://wordpress.org/extend/plugins/ckeditor-for-wordpress/

  2. michal
    Member
    Plugin Author

    Posted 2 years ago #

    Thx for notice this. We will check this.

  3. michal
    Member
    Plugin Author

    Posted 2 years ago #

    I commited changes to svn revision 445634.
    Please update. Once again thank you.

  4. calfzhou
    Member
    Posted 2 years ago #

    Great. Thank you!

  5. michal
    Member
    Plugin Author

    Posted 2 years ago #

    This fix was added to release 3.2.1.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic