WordPress.org

Forums

CLEditor for WordPress
Bug: When the textarea changes position, the CLEditor stops working (2 posts)

  1. kisshomaru
    Member
    Posted 1 year ago #

    Bug: When the textarea changes position, the CLEditor stops working.
    For example if I hit Reply to a particular comment, the textarea window will go there, but the CLEditor will not work, buttons are still shown, but can't write anything, also pressing a button in that state will generate an error "in executing command".

    http://wordpress.org/plugins/cleditor-for-wordpress/

  2. kisshomaru
    Member
    Posted 1 year ago #

    refreshing method to synch with the new DOM gets rid of the issue. Someth like this:

    jQuery(document).ready(function($) {
    		var $allcommentareas = $("#comment, #new-topic-post textarea, #new-post textarea, #whats-new-textarea textarea, #post-topic-reply textarea").cleditor();
    		// Refresh cleditor first object when pushing Reply:
    		$(".comment-reply-link").click(function() {
    				setTimeout(function(){
    					$allcommentareas[0].refresh();
    				}, 50);
    		});
    		/* Refresh cleditor first object again when Cancel the Reply: */
    		$('#cancel-comment-reply-link').click(function() {
    				setTimeout(function(){
    					$allcommentareas[0].refresh();
    				}, 500);
    		});

    Also putting the latest cleditor 1.4.3 instead of this current 1.3.0 has some advantages and improvements.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • CLEditor for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.