• 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/

Viewing 1 replies (of 1 total)
  • Thread Starter kisshomaru

    (@kisshomaru)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Bug: When the textarea changes position, the CLEditor stops working’ is closed to new replies.