Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I've implemented a custom ribbon button/dialog to insert a link to a document contained in a third party DMS. The DMS client installs a protocol handler that allows the use of links such as the following -

iwl:dms=DEV85SERVER&lib=LIVE&num=25210&ver=1

Unfortunately, upon saving the page, the above URL is stripped out and I'm left with an empty A tag.

Is it possible to either disable the SP2010 RTE validation, or escape the above URL somehow to prevent the A tag being sanitized?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

I ended up going with an alternative approach. I added an .aspx page to my package, and had the RTE inserted link pass the relevant parameters over to the new page. Then, the .aspx page regenerated the original URL and handled it accordingly.

share|improve this answer
    
Please mark this as the accepted answer, to show the question as resolved. –  Stuart Pegg May 24 '11 at 21:32
    
There's a waiting period to accept your own answers, I was planning to do so once it has elapsed. –  simonjs May 25 '11 at 8:12
    
Fair enough. I jumped the gun obviously. :) –  Stuart Pegg May 25 '11 at 8:18
add comment

Use the ContentEditorWebPart. Your url won't be stripped out. This approach is also used when trying to add javascript to a web page.

share|improve this answer
    
Thanks, but unfortunately (in this case) there's a requirement to have this functionality available in RTE's outside of web parts. –  simonjs May 24 '11 at 14:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.