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

  • SEARCH
  • Home
  • 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 6844753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:25:00+00:00 2026-05-27T00:25:00+00:00

I am using CKeditor to allow users to add images to their textboxes in

  • 0

I am using CKeditor to allow users to add images to their textboxes in a CMS.

A possible scenario is this: I develop a new site for a customer at http://developer.com/customer/a. The base url is “/customer/a”. But when I ship the finished site to their domain http://www.customer-a.com, base url is changed to “/” and all image links are broken.

I would like to CKEditor to save something like {base_url}/media/my-image.jpg, but still keep all the WYSIWYG-features of CKeditor. Is there a hook or event in CKeditor where I could replace for e g {base_url} before the html i viewed?

I would appreciate any hints.

  • 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-27T00:25:01+00:00Added an answer on May 27, 2026 at 12:25 am

    The hard way would be to use CKEditor’s html parser and traverse whole html text when its loaded into editor and check/correct url of img tags.

    Second option, although im not sure if it can be applied on your case, would be to make all images dependant on CKEDITOR.basePath and determine just that when CKEDITOR is initializing.

    Or just develop on http://developer.com/customer/a, but let images be placed on http://www.customer-a.com even for development 🙂

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

Sidebar

Related Questions

Using ckeditor users can add a description to their listing. Some descriptions have a
I'm using CKEditor and would like to be able to allow users to upload
i have a textarea and I am using ckeditor to allow users to enter
I am Using CKEditor in my application where the users can write blogs, create
I am using CKEditor in my web app and new to it. It seems
I would like giving my users a limited editor, using the great CKEditor. I
iam using ckeditor in my website to add the content to the pages. But
I am using CKEditor/CKFinder as wysiwyg editor on my MVC.NET site. I have set
I am using ckeditor in drupal and add some html tags in it like
I am using CKEditor and what it does is add by default a <p>

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.