[eluser]tirso[/eluser]
hi to all
Actually I search all over the forums about tinymce. I have tried so many times but it doesn't work. It just only display a plain textbox with save button. I downloaded the tinymce "tinymce_3_2_5.zip" the main package. I put it in my js folder.
Any help would greatly appreciated.
thanks
Tirso
directory structure
js
js/tiny_mce
system
in my view "newpost.php"
Code:
<html>
<head>
<title>TinyMCE Test</title>
[removed][removed]
[removed]
tinyMCE.init({
mode : "specific_textareas",
theme : "advanced",
plugins : "paste,preview",
theme_advanced_buttons1 : "bold,italic,underline,separator,bullist,numlist,undo,redo,link,unlink,separator,paste,pastetext,pasteword,separator,cleanup,preview,code",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
extended_valid_elements : "a[name|href|target|title|onclick|rel],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
editor_selector : "mceEditor"
});
[removed]
</head>
<body>
<form method="post" action="localhost">
<textarea name="content" cols="50" rows="15"></textarea>
<input type="submit" value="Save" />
</form>
</body>
</html>
in my controller
Code:
function newpost(){
$data['page'] = 'admin/blog/newpost';
$this->load->view('template_admin',$data);
}