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 have a ContentEditorWebPart in visual studio 2010. I have altered the content and added some html. When i deploy this it works fine.

When i add a hyperlink to the content the deployment fails. It only happens when hyperlinks are included in the content.

Why is this?

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

If I understand correctly you tries to provision a CEWP by feature. In this case I think you should escape some symbols in your web part definition. The best way, I think, is to add CEWP to the page, add html manually, and do export web part action. After this you can download exported web part to your PC and open file in visual studio. In this file you can find out correct content that should be included in provision.

share|improve this answer
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.