Changing Editor to full TinyMCE – Problems with textarea
-
Hello everyone,
I am trying to change the tinymce toolbar for the forum (reply & topic). To do so I added this code to the form-reply.php and the same (just different context) for form-topic.php:
<?php bbp_the_content( array( 'context' => 'reply', 'media_buttons' => false, 'wpautop' => true, 'quicktags' => true, 'teeny' => false, 'tinymce' => array( 'toolbar1' => 'bold,italic,underline,strikethrough,alignleft,aligncenter,alignright,bullist,numlist,blockquote,link,unlink,forecolor,backcolor,undo,redo,removeformat' ), ) ); ?>
Everything is working so far, except a small detail:
I am not able to click into the textarea/editor, so that the cursor jumps into the first line. Instead I have to click the first line, which is working.
I was able to isolte the problem, which is coming from this part of the code:
'tinymce' => array( 'toolbar1' => 'bold,italic,underline,strikethrough,alignleft,aligncenter,alignright,bullist,numlist,blockquote,link,unlink,forecolor,backcolor,undo,redo,removeformat'
It also appears if I just add:
'tinymce' => true
I looks like that the syntax might be wrong, but I read a lot of guides, and in all the syntax was the same.
I also recognized, that there is a change in the source code, after I add that “tinymce” bit to the array.
After the changes the appears this code:
<p><br data-mce-bogus="1"></p>
—–
What I read is, that this problem occurs when tinymce is using a <textarea> – But I don’t know how to change that textarea to a div, which is recommended.
Anyone can help me on this?
Thank you for your help in advance!
- You must be logged in to reply to this topic.