Extending Content Fragment datatype CSS | Community
Skip to main content
Level 3
August 3, 2022
Solved

Extending Content Fragment datatype CSS

  • August 3, 2022
  • 1 reply
  • 691 views

Is it possible to extend a content fragment datatype css? For example:

/libs/dam/cfm/admin/components/authoring/contenteditor/jsoneditor/clientlibs/cfeditor/css/jsonfield.less

And if yes, how do I programmatically extend it? I understand that I may have to create the folder structure under ui.apps/src/main/content/jcr_root is there an easy way to do this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi,

You no need to extend

/libs/dam/cfm/admin/components/authoring/contenteditor/jsoneditor/clientlibs/cfeditor/css/jsonfield.less

 instead of create your own CSS with same clientlibs category and override CSS rules.

CSS rules precedence will help - https://jenkov.com/tutorials/css/precedence.html

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
August 4, 2022

Hi,

You no need to extend

/libs/dam/cfm/admin/components/authoring/contenteditor/jsoneditor/clientlibs/cfeditor/css/jsonfield.less

 instead of create your own CSS with same clientlibs category and override CSS rules.

CSS rules precedence will help - https://jenkov.com/tutorials/css/precedence.html

Arun Patidar