versionone / VersionOne.Client.VisualStudio

View and update VersionOne work items directly from Visual Studio
http://versionone.github.io/VersionOne.Client.VisualStudio
BSD 3-Clause "New" or "Revised" License
2 stars 10 forks source link

Show plain text in description field #75

Closed morrica01 closed 10 years ago

morrica01 commented 10 years ago

As a developer in Visual Studio, I want to quickly and easily understand the work assigned to me so that I can get on with writing code. When the description field is already relatively hidden and what is shown contains raw HTML code, then it gets in the way of my quick and easy understanding.

Steps to Reproduce:

  1. Right-click a story and select the Properties option from the context menu.
  2. Click the editor button for the Description field.
  3. Write some text and apply bold to the first word, and italics to the second.
  4. Click OK. Notice: The HTML tags in the description.

    Acceptance Criteria

    • The Description field strips HTML tags from display.
    • Editing the Description field still shows HTML.
    • Saving the Description field saves HTML tags correctly.
MatiasHeffel commented 10 years ago

After a long research, I found a solution to this issue. Basically the idea was show in the property windows of Visual Studios a plain text of the Description field, but when the Editor is open, shows the text with the same style as the web application ("open in VersionOne" action in the context menu) and after click ok save the style but show only a plain text in property windows. To accomplish that I add some code in WorkitemPropertyDescriptor.csso every time that the Description property is required to been shows in the property windows I remove the HTML code, and when the editor is open I call to a new method to get the value of the Description with the style in in RichTextTypeEditor.cs.