Search Results for 'code'
-
Search Results
-
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' => trueI 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!
Topic: Import Hung?
I was importing from my Vbulletin 4 and it went through converting topics, then it started converting tags and hung about 12,900. Is this a known bug? What’s the best way to do this over without losing the imported content and without taking risks of missing content not being imported initially on the hang up? Any ideas why it would hang up like that? It took a pretty long time just to do the topics. It didn’t start the users yet either. You’d think it would import users first?
Side note, I don’t see any area to set up bbcodes? Is bbcode not a default feature?