Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mudrd8mz opened this issue Jan 24, 2024 · 0 comments
Open

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

mudrd8mz opened this issue Jan 24, 2024 · 0 comments

Comments

@mudrd8mz
Copy link

From what I can understand from

$this->getSubComponentHtml( ContentBody::class, 'ContentBody' ) .
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant