[eluser]alex646[/eluser]
I'm trying to add TinyMCE into my CI project, everything works well except one thing:
Editor shows up correctly, but the area where you supposed to type text is not showing up.
Just menus, toolbar and statusbar show up, actual editor to type text doesn't. I use CI's form_texarea(), TinyMCE works well if I add <textarea></textarea> right below my form_texarea(), but I get two editors, I'm very confused : (
My code:
JS files are stored in the template:
Code:
<head>
<!--TinyMCE test -->
<!-- Place inside the <head> of your HTML -->
[removed][removed]
[removed]
tinymce.init({
mode: "textareas"
});
[removed]
Form view:
Code:
<?php echo form_open('private/add_post/newpost'); ?>
<h5>Title</h5>
<div class=""><?php echo form_error('title'); ?></div>
<input type="text" name="title" value ='<?php print $this->session->flashdata('title'); ?>' size="50" />
<h5>Post</h5>
<?php echo form_error('post'); ?>
<?php print form_textarea( array( 'name' => 'post', 'rows' => '10', 'value' => set_value('post')) )?>
<div><input type="submit" value="Submit" /></div>
<?php echo form_close();?>
I appreciate any help!