|
|||
|
Hi,
I was trying to install the fckeditor with ZF. But I got an exception , looks like ZF is looking for a controller for that... Unexpected Exception: XXXController::editorAction() does not exist and was not trapped in __call() Thanks for any help! Last edited by iroy2000 : 03-21-2008 at 09:33 PM. |
|
|||
|
LOL. I replied my own post.
The problem was solved, you need to turn off the rewrite engine in your fckeditor directory, and then specify your basepath when creating the fckeditor object. And it should work like a champ!! So I leave the answer here just in case someone need it in the future ~~ |
|
|||
|
Don't turn off the rewrite engine.
use this. Step 1. PHP Code:
step .2 copy fckeditor to /js/fckeditor the str. will be webroot/js/fckeditor/editor where webroot (or public_html or htdocs or www) is root directory for external files step. 3 in view.phtml (view file) PHP Code:
In layout.phtml you need to echo the headscript because we have added a headscript prepend file method. PHP Code:
document.getElementById('content_text') in the view, the textarea has name='content_text' and id='content_text' look for the name of text area which is to be replaced. You will know this as you give the name for textarea in zend_form. The javascript will search of this id, if found it will replace the textarea with fckeditor. I find this useful because fckeditor.js is loaded only when required. Step.5 for uploading images be sure to change the directory path in fckeditor/editor/filemanager/connectors/php/config.php PHP Code:
I have tried to be as explanatory as possible. If you encounter any problem, do ask. Also, there are many different ways to do this. Don't get confused if you see any other method. Last edited by zeus : 06-15-2008 at 01:53 AM. Reason: typo error |
![]() |
| Thread Tools | |
| Display Modes | |
|
|