Topic: I need some know-how for the bbcode plugin
Hm, I figured this forum would have tiny mce integrated, oh well. onto my question:
The bbcode plugin has some issues, especially when you edit content, but we aren't going to get into all that right now. I simply want to know how to have the rich text editor enabled by default.
In the example, there is a link you click to toggle tinymce, well i took the code from that link and put it on the textarea tag, worked fine but i found a few issues that would be too much trouble to fix, so I just want the rich text editor loaded on default, without having to click any links or anything.
This is how tinymce is called:
<script type="text/javascript">
tinyMCE.init({
theme : "advanced",
mode : "none",
plugins : "bbcode",
theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,removeformat,cleanup,code",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_styles : "Code=codeStyle;Quote=quoteStyle",
entity_encoding : "raw",
add_unload_trigger : false,
remove_linebreaks : false,
inline_styles : true,
convert_fonts_to_spans : false
});
</script>
<textarea name="post" id="content" style="width:100%;"></textarea>
<a href="#" onclick="tinyMCE.execCommand('mceToggleEditor',false,'content');">[Toggle WYSIWYG]</a>Once again, I want to remove the link and have tinymce initiated automatically without having to call tinyMCE.exeCommand.