stable

Clone or download

Read-only

Introduce the new Markdown format in the text field of the artifact modal

Part of story #18336 add support of markdown How to test: - In a text field of the artifact modal, choose the 'Markdown' format => The text area should be displayed - Write some markdown and save. - Go to the artifact view => The Markdown should be interpreted. - Write some content in the other format => No functionnal change expected You should also test the Edit modal: - Open the modal => The selected text field format should be the same as the format of the text field already saved before. => The written text and format can be saved as before. - You can also test the comment section. => Whatever the format, if you reopen the modal after, the new saved comment should be written in the right format (If the 'Markdown' fromat was choosen, then the comment should be inerpreted. Same if the 'html' format was choosen etc ...) Change-Id: I47e1957a84aeff04b784978cdabb5ff6093035e5

Modified Files

Name
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_Changeset_Comment.class.php +1 −0 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/common/FormatSelector.vue +10 −2 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/common/RichTextEditor.vue +6 −2 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/model/field-values-service.js +3 −4 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/model/field-values-service.test.js +8 −2 Go to diff View file
A plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/text-field/text-field-value-formatter.js +50 −0 Go to diff View file
A plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/text-field/text-field-value-formatter.test.js +52 −0 Go to diff View file
M plugins/tracker/scripts/constants/fields-constants.js +1 −0 Go to diff View file