File manager - Edit - /var/www/payraty/helpdesk/common/resources/client/custom-page/custom-page-body.tsx
Back
import {CustomPage} from '@common/admin/custom-pages/custom-page'; import {useEffect, useRef} from 'react'; import {highlightAllCode} from '@common/text-editor/highlight/highlight-code'; interface CustomPageBodyProps { page: CustomPage; } export function CustomPageBody({page}: CustomPageBodyProps) { const bodyRef = useRef<HTMLDivElement>(null); useEffect(() => { if (bodyRef.current) { highlightAllCode(bodyRef.current); } }, []); return ( <div className="px-16 md:px-24"> <div className="custom-page-body prose mx-auto my-50 dark:prose-invert"> <h1>{page.title}</h1> <div ref={bodyRef} className="whitespace-pre-wrap break-words" dangerouslySetInnerHTML={{__html: page.body}} /> </div> </div> ); }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.83 |
proxy
|
phpinfo
|
Settings