Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter clayborn

    (@nhoullet)

    tried this …

    public function add_section_to_comment($text)
    	{ global $comment; $coid = $this->comments[$comment->comment_ID];  $coba = $comment->comment_ID;
      ?><script type="text/javascript">/* <![CDATA[ */
    jQuery(document).ready(function($)
                           {
                           var i=1; var id = $(this).attr('id');
    
                           if (!id)
                           {
                           id = 'ac-textarea' + i++;
                           $(this).attr('id',id);
                           }
                           $('.ac-textarea textarea').each(function() {
     tinyMCE.execCommand('mceAddControl', false, 'ac-textarea'); }); });
     /* ]]> */</script><?php
    		return '<div  id="ac-section-'.$comment->comment_ID.'">'.$text.'</div><div class="ac-textarea" id="ac-textarea-'.$comment->comment_ID.'" style="display: none;"><textarea  id="ac-textarea" name="ac-textarea" >'.$this->comments[$comment->comment_ID] .  '</textarea></div>';
    	}

    and tried to replace the textarea with the wp_editor function without success too bad that it doesn’t work with the wp functions out of the box

    Plugin Author dFactory

    (@dfactory)

    We didn’t plan to allow TinyMCE editor in comments, and we generally find it a bad idea.

    However, I’m adding this to our to-do list for one of the future releases, because that’s not the first time someone is asking for it.

    Thread Starter clayborn

    (@nhoullet)

    looking forward to seeing it

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘tinymce’ is closed to new replies.