Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Ckeditor and Ckfinder / Tinymce and imagemanger
  • I've been trying for hows but I can't seem to integrate ckfinder into my application Ckeditor loads fine on the textarea but when i click browse server i get a 404 page. Does any one have any experience or suggestions that would help me out? I'm sure other people will need this also.
  • I'd check the URL of the browser and verify it against an existing controller, if there is none (a good thing) then you may need to add a rewrite rule to exclude it from being routed through Fuel, in other words, if the image browser is calling a php file and you don't have that file excluded in the .htaccess file it will get routed through Fuel thus triggering a 404 error. However, some may respond suggesting you put it in the vendors folder -- I've not had a chance to integrate a third party program yet so I'm not sure. also some may respond with a way to exclude it using Routes, I'm not sure if that's possible, but there are others more knowledgeable about the routing. My advice would be to add a rule in .htaccess, that'll get it working the fastest, but may not be the ultimate best answer.
  • Yeah I will try that next I think otherwise to much configuration I reckon. Thanks mate.
  • Chuck it in public and link to it like anything else. Use the Asset library or just throw a full path at it. PHP doesn't care about your JavaScript.
  • Its in the public folder, the editor loads fine but when the image manager is clicked It gives a 404 as fuel looks for a controller..
  • Hi, I am using CKEditor (jQuery extension) with this filemanager http://pgrfilemanager.sourceforge.net/ I have this code in my view and it works without any issues.
    echo Asset::js('ckeditor/ckeditor.js');
    echo Asset::js('ckeditor/adapters/jquery.js');
    ?>
    [removed]
        $(function()
        {
            $('#textarea_content').ckeditor({height:'500px'});
        });
    [removed]
    

    This forum strips tags so [removed] === script tags Phil.
  • Phil Foulston wrote on Saturday 10th of September 2011:
    Hi, I am using CKEditor (jQuery extension) with this filemanager http://pgrfilemanager.sourceforge.net/ I have this code in my view and it works without any issues.
    echo Asset::js('ckeditor/ckeditor.js');
    echo Asset::js('ckeditor/adapters/jquery.js');
    ?>
    [removed]
        $(function()
        {
            $('#textarea_content').ckeditor({height:'500px'});
        });
    [removed]
    

    This forum strips tags so [removed] === script tags Phil.

    Works perfectly! thanks every for all your help!
  • Your welcome.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion