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 6668511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:02:58+00:00 2026-05-26T03:02:58+00:00

I have a problem with tinyMCE and Image URLs in rails. I inserted the

  • 0

I have a problem with tinyMCE and Image URLs in rails. I inserted the image with this URL:

http://mydomain.com/fold1/fold2/fold3/2010/name.png

and the image is properly inserted. But when I right-click on the image and select insert/edit image, there is this (instead of the URL I pasted):

../../../fold2/fold3/2010/name.png

Since I use this image on more pages, this relative URLs doesn’t work for me. I want to set that tinyMCE doesn’t modify the URL at all. The URL should be exactly the same, as I write it!

After i did some digging, I believe I should set convert_urls : false inside tinyMCE.init. Am I right? But I am not able to set this.

I looked for tinyMCE.init function inside my rails project with grep -r “tinyMCE.init” * and I found one call of init function inside public/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm file. The call of init function looks like:

tinyMCE.init(settings)

above the call there is this code, which set the settings:

            // Set options
            delete settings.id;
            settings['mode'] = 'exact';
            settings['elements'] = 'fullscreenarea';
            settings['add_unload_trigger'] = false;
            settings['ask'] = false;
            //     settings['document_base_url'] = window.opener.tinyMCE.activeEditor.documentBaseURI.getURI();
            settings['fullscreen_is_enabled'] = true;
            settings['fullscreen_editor_id'] = oeID;
            settings['theme_advanced_resizing'] = false;
            settings['strict_loading_mode'] = true;

            //I ADDED THIS TWO LINES
            settings['convert_urls'] = false;
            settings['relative_urls'] = false;

As you can see I commented out the line with ‘document_base_url’ and added the last two lines. But this doesn’t work. The URLs are stil modifying when I insert them. Can anyone help me with this?

  • 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-26T03:02:58+00:00Added an answer on May 26, 2026 at 3:02 am

    Try adding this:

    settings['remove_script_host'] = false;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

consider following url: http://sitename.com/School/Admin/PageViewer i have a subfolder in School named UserFiles that contains
I recently started developing websites on wordpress. I have this problem with tinymce editor.
I have problem with TinyMCE editor. I have form with few text fields and
I have a problem with tinyMCE but only on live environment from some reason
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have a strange problem with the TinyMCE editor on one of our pages.
I have a problem with FCKEditor and TinyMCE. I need a WYSIWYG editor that
I have a problem as follows: We're using a rich text editor (TinyMCE, but
I have problem with implementing Rich Text Editor (all that i tried, e.g. TinyMCE).
Once more, I'll need your help with Rails. This time, I've a problem with

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.