Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Adding text style to DNG module inline editor

Greetings team,

1. I wonder if it is possible to add text style to the artifact editor, and module inline editor.
Current styles are: Normal, Heading 1-6.
2. Is there any way to change the styles with css files.

Thanks

0 votes



One answer

Permanent link
Hi,

At present, it's not possible to change the way that any of the existing styles work or to add new ones to the editor.  You cannot contribute custom CSS either.

One option you have is to create a DNG Client Extension - these have access via a JavaScript API to all the attributes of an artifact, including the primary text.  You can therefore use one to read the text value of the an artifact or group of artifacts in a colleciton or module, change the text and write it back.  So you could take the current primary text string, put it into an DOM element, run some query to find e.g. all h1 elements then apply an inline style that makes them purple with a piece of jQuery e.g. before writing the primary text back.

If you think this would be any use - the documentation for getting started is here :


DNG Client Extensions

Hope this helps. I can provide some sample code to do something like the above if required.

Thanks,

Steve Wood.

Developer RM Team


0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,125

Question asked: Jul 01 '14, 1:46 a.m.

Question was seen: 3,639 times

Last updated: Jul 01 '14, 5:05 p.m.

Confirmation Cancel Confirm