Welcome Guest, Not a member yet? Register   Sign In
tinyMCE & file manager/upload
#1

[eluser]the_unforgiven[/eluser]
I'm currently using tinymce for all textarea's and i want to know how to intergrate the file manager into my CI project...also any other suggestions on wysiwyg/uploaders to do all this at once.
#2

[eluser]craig.hoog[/eluser]
You're going to need a controller that can handle all the background uploads that you can make AJAX calls to. I would start with doing some general research on AJAX uploads with TinyMCE.

I know there are multiple ways to do it, but it's not something I can simply "copy and paste" here for you to use in your project.
#3

[eluser]CroNiX[/eluser]
There are several filemanagers available for TinyMCE. Some free, some not. Some require flash for uploading, which won't work on stupid Apple iOS devices, if that's a concern. But that's what happens when you have CEOs with personal grudges and hold those higher than the best interest of their customers Smile
#4

[eluser]the_unforgiven[/eluser]
Smile to your post Chronix lol

OK i have found something searching around the net just workin on it as we speak!
#5

[eluser]the_unforgiven[/eluser]
Right got this working 98%, but a small problem:

when the link is
Code:
http://localhost/site/js/tiny_mce/plugins/advimage/js/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php

Because of routes and htaccess, it doesn't show the browser window instead show:
Code:
An Error Was Encountered

Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.

SO my question is how does one get round this?

but if i open a new window and type:

http://localhost/site/js/tiny_mce/plugin...anager.php

it works just fine
#6

[eluser]CroNiX[/eluser]
Hard to answer without seeing the htaccess or the routes you are using...
#7

[eluser]the_unforgiven[/eluser]
Apologies my fault here's both htaccess and routes:

Code:
ROUTES:

$route['default_controller'] = 'home';
$route['404_override'] = '';

/*
| -------------------------------------------------------------------------
| CUSTOM ROUTES
| -------------------------------------------------------------------------
*/

$route['pages/(:any)'] = 'home/pages/$1'; // Pages Routes

$route['login'] = 'auth/login'; // Login
$route['logout'] = 'auth/logout'; // Logout
$route['forgot'] = 'auth/forgot_password'; // Forgot Password

Code:
HTACCESS

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /site/

    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php
</IfModule>
#8

[eluser]CroNiX[/eluser]
My guess is the url you are sending the request to is wrong. Look at the difference between what is working (that you posted) and what isn't. The one that isn't working has a part of the path that is repeated 2x.
#9

[eluser]the_unforgiven[/eluser]
Shit! Yer that was it been looking at over an hour, think it's time i went to bed!!! Been looking at the screen solid for last 11 hours, not good, thanks for your eyes Chronix...

Much appreciated!

Smile




Theme © iAndrew 2016 - Forum software by © MyBB