Jump to content

Content Managent System Editor Javascript Problem


super_mario@att.net

Recommended Posts

Hi all,

I use a CMS system written in PHP, but the editor function which is written in Javascript is responsible for the bold, italics, underline and html->plain text buttons and is giving me a problem. That problem is that whatever link is found in the content, it changes the relative links to absolute links.

For example: the link:../apple.html will automatically change it to:http://phpfreaks.com/cms/apple.html

 

does anybody know what I should look for? I would post the code but its approximately 600 lines of code (attached).

 

Any help will be appreciated.

 

Thank you in advance,

super_mario

 

[attachment deleted by admin]

Link to comment
Share on other sites

Look in the CMS Help Menu for Q&A related to this problem; if that does not help, contact the vendor of said CMS. If they cannot help; you can manually remove the absolute url; too make it a relative url. Very easy to do; open file in notepad. Go to "Edit", click "Replace", then type in the domain of the absolute url (ie "http://www.phpfreaks.com") into the "Find" textbox. Leave the replace textbox empty and click "Replace All"; then save your file and your done.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.