super_mario@att.net Posted February 6, 2008 Share Posted February 6, 2008 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] Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted February 6, 2008 Share Posted February 6, 2008 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. Quote Link to comment Share on other sites More sharing options...
super_mario@att.net Posted February 6, 2008 Author Share Posted February 6, 2008 No contact information for the CMS since it is open source. The replacing part of the url is very is easy, but the problem is that it has to be changed everytime the page is attempted to be changed. Its easy for me to do but not for non-techys and thats what the CMS is about. Thank you anyway Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted February 7, 2008 Share Posted February 7, 2008 Guess that is just a common draw back with open source; sometimes you have to take what you get. Good Luck Quote Link to comment Share on other sites More sharing options...
super_mario@att.net Posted February 7, 2008 Author Share Posted February 7, 2008 Thank you for your advice, did anybody look at the code I have attached of the Javascript I am having trouble with? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.