Welcome Guest, Not a member yet? Register   Sign In
Help with TinyMCE
#1

[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">
&lt;html &gt;

&lt;head&gt;
[removed][removed]
[removed]
tinyMCE.init({
    mode : "textareas",
    theme : "simple"
});
[removed]
&lt;/head&gt;

&lt;body&gt;
&lt;form method="post" action="somepage"&gt;
    &lt;textarea name="content" style="width:100%"&gt;
    &lt;/textarea&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;

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">
&lt;html &gt;

&lt;head&gt;
[removed][removed]
[removed]
tinyMCE.init({
    mode : "textareas",
    theme : "simple"
});
[removed]
&lt;/head&gt;

&lt;body&gt;

&lt;form method="post" action="somepage"&gt;
    &lt;textarea name="content" style="width:100%"&gt;
    &lt;/textarea&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;

So why doesn't it work? Do I have to change some sort of config setting somewhere?
#2

[eluser]k2zs[/eluser]
Found the problem!

Make sure any root path needed is in your htaccess file!




Theme © iAndrew 2016 - Forum software by © MyBB