I am trying to make a button like the insert link button or even the insert image button, so when you click the button a window opens and you input your url. Then i need to add a bit of code that would edit the url and remove certain characters.
So lets say my url is
http://www.123.com/2345=ertygf and i want it to be
http://www.123.com/2345 i know i can use javascript to run something like this...
url = url.replace("=ertygf","");
the urls that will be copied in will all have the exact same string that needs to be removed.
Then i need it to place the url in the text editor wrapped around some tage like [tag] url[/tag].. and it needs to work in the standard editor and the WYSIWYG editor.
Any advice?
-x