[eluser]k2zs[/eluser]
I've searched the forum and read almost every post regarding TinyMCE but STILL can NOT get it working.
Per a suggestion I read in a post I moved the "application" and "system" directories out of the web root so my directory structure looks like this:
application/
public_html/
system/
Views are stored in /application/ as they should be...
In public_html/ I have a folder called js/tiny_mce/ and it contains all of the folders and files for tinymce.
I made a test controller that does nothing more than load the view I am using for testing and it loads a a basic view that calls tinyMCE and loads a form with a test area. I view source and the path to TinyMCE is correct but no good.
Controller:
Code:
<?php
/**
* Controller - /controllers/home.php
*/
class Home extends Controller {
function Home()
{
// load controllers parent
parent::Controller();
// load this controllers model
$this->load->model('home_model');
}
// get the model info and pass it to the template
function index()
{
$this->load->view('pageEdit_view');
}
}
View:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html >
<head>
[removed][removed]
[removed]
tinyMCE.init({
mode : "textareas",
theme : "simple"
});
[removed]
</head>
<body>
<form method="post" action="somepage">
<textarea name="content" style="width:100%">
</textarea>
</form>
</body>
</html>
When I view source I get:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html >
<head>
[removed][removed]
[removed]
tinyMCE.init({
mode : "textareas",
theme : "simple"
});
[removed]
</head>
<body>
<form method="post" action="somepage">
<textarea name="content" style="width:100%">
</textarea>
</form>
</body>
</html>
So why doesn't it work? Do I have to change some sort of config setting somewhere?