views:

276

answers:

1

I am using tincymce as the content editor and file manager in a PHP admin area. How can I change the file path dynamically so that I can use one instance of the editor for different organized functions?

I can easily pass a variable to the tinymce.init configuration, but I am not aware of and can not find a configuration option for the file path.

The actual file path variable is in the plugin's config.php file as $mcFileManagerConfig['filesystem.path'] and $mcFileManagerConfig['filesystem.rootpath']

How can I pass my variable to this file?

A: 

Create yourself a mall view that is just for wysiwyg configuration. Then you can assign specific properties to TinyMCE instances based on the textarea names.

http://pastie.org/853208

There should be plenty of code in there for you to look through. As long as that view is included in the head, your TinyMCE setups should all work perfectly and all be different.

Phil Sturgeon
Thank you so much for the reply. I ended up setting native sessions in codeigniter by adding session_start() to the index.php file, then passing the session to tinymce by using a custom authenticator, which let me set the tinymce configuration values.
sterling