Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 391185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:02:14+00:00 2026-05-12T16:02:14+00:00

The official documentation is less than clear – what’s the correct way to integrate

  • 0

The official documentation is less than clear – what’s the correct way to integrate a custom file browser/uploader with CKEditor? (v3 – not FCKEditor)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:02:14+00:00Added an answer on May 12, 2026 at 4:02 pm

    Start by registering your custom browser/uploader when you instantiate CKEditor. You can designate different URLs for an image browser vs. a general file browser.

    <script type="text/javascript">
    CKEDITOR.replace('content', {
        filebrowserBrowseUrl : '/browser/browse/type/all',
        filebrowserUploadUrl : '/browser/upload/type/all',
        filebrowserImageBrowseUrl : '/browser/browse/type/image',
    filebrowserImageUploadUrl : '/browser/upload/type/image',
        filebrowserWindowWidth  : 800,
        filebrowserWindowHeight : 500
    });
    </script>
    

    Your custom code will receive a GET parameter called CKEditorFuncNum. Save it – that’s your callback function. Let’s say you put it into $callback.

    When someone selects a file, run this JavaScript to inform CKEditor which file was selected:

    window.opener.CKEDITOR.tools.callFunction(<?php echo $callback; ?>,url)
    

    Where “url” is the URL of the file they picked. An optional third parameter can be text that you want displayed in a standard alert dialog, such as “illegal file” or something. Set url to an empty string if the third parameter is an error message.

    CKEditor’s “upload” tab will submit a file in the field “upload” – in PHP, that goes to $_FILES[‘upload’]. What CKEditor wants your server to output is a complete JavaScript block:

    $output = '<html><body><script type="text/javascript">window.parent.CKEDITOR.tools.callFunction('.$callback.', "'.$url.'","'.$msg.'");</script></body></html>';
    echo $output;
    

    Again, you need to give it that callback parameter, the URL of the file, and optionally a message. If the message is an empty string, nothing will display; if the message is an error, then url should be an empty string.

    The official CKEditor documentation is incomplete on all this, but if you follow the above it’ll work like a champ.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.