Adding text style to DNG module inline editor
One answer
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
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