Quote:
Originally Posted by rokonkwo
Submit Story plugin does not enable TinyMCE for members. It only shows a plain text area for the member. Does anybody know how to fix this issue?
Thanks so much.
Randolph
|
Its because some of the crucial TinyMCE stuff is located in the /admin
/admin/admin_include.php (somewhere around line 95) checks to see if the logged in user can access the AdminCP, if not, it 404 errors out while trying to include some files located within the /admin folder.
The front end "submit_story_tinyMCE_config.php (line 18) requires the above file, so when its envoked by a user that does not have admin access, that include fails which makes the tinyMCE not work for that user.
You can clone the /admin/admin_include.php file and call the cloned file admin_include2.php .. then edit that file and comment out the following code..
PHP Code:
// Check access
/* if (!$sm->user->can('ACCESS_ADMIN')){
go_404();
} */
then in the submit_story_tinyMCE_config.php, change the require_once path to use admin_include2.php instead of admin_include.php
Then your tinyMCE will work on the frontend.