ProfessionalWiki / chameleon

Provides a highly flexible and customizable skin using Bootstrap 4
https://www.mediawiki.org/wiki/Skin:Chameleon
Other
114 stars 62 forks source link

What is the right way to override the ContentBody HTML in 4.3? #414

Open mudrd8mz opened 8 months ago

mudrd8mz commented 8 months ago

From what I can understand from https://github.com/ProfessionalWiki/chameleon/blob/3094d2f3e40216287792b1a2aef8b188ace497e3/src/Components/MainContent.php#L59 the MainContent component has hard-coded ContentBody as the class to provide the content body HTML.

What is the clean way to inject my own ContentBody subclass to be used instead?

My use-case is that in buildContentBody() I want to perform some DOM modifications and I am trying to find the clean way to customise it.

TIA