How to set default header and footer when DocumentEditor editor is render in react

-Below is my code

import { DocumentEditor } from ‘@onlyoffice/document-editor-react’;
import { useEffect, useState } from ‘react’;
import { onlyOfficeService } from ‘…/…/service/onlyOffice/onlyOffice.service’;
import config from ‘…/…/config/config’;
import { useParams } from ‘react-router-dom’;

const onDocumentReady = function () {};

export const DocEditorIndex = () => {
const params = useParams();
const file_id = params.id;

const [docConfig, setDocConfig] = useState(null);

useEffect(() => {
if (file_id) {
onlyOfficeService.getConfig(file_id || ‘’).then((res) => {
setDocConfig(res);
});
}
}, [file_id]);
console.log(docConfig, ‘docConfig’);

const handleChange = (editorChanges: any) => {
console.log(editorChanges);
};
const events_onMakeActionLink = (event: any) => {
console.log(event);
};

return (
<>
{docConfig !== null ? (


<DocumentEditor
id=“docEditor”
documentServerUrl={config.documentServerUrl || ‘’}
height=“800px”
document_title=“asad”
config={{
…docConfig,

        }}
        events_onMetaChange={handleChange}
        events_onDocumentReady={onDocumentReady}
        events_onMakeActionLink={events_onMakeActionLink}
      />
    </div>
  ) : (
    <p>Still Processing</p>
  )}
</>

);
};

Hey @chandani :wave:

  • Could you please clarify what you mean by “header” and “footer” in your context?

  • It would be helpful if you could provide a screenshot to illustrate exactly what you are trying to achieve.

This will assist me in better understanding your request and providing you with the most accurate guidance.

I want this type of default and custom header and footer when I open a file via document editor
-Also you can say that i want write into the file before it’s oprn to editor

Thanks

Hello @chandani
I will step to this thread too.
It seems you created 2 topics on the same request. Please do not create multiple topics in this way. I have replied to you in another thread: How replace contentcontrol content - #9 by Alexandre
If I misunderstood the request, please clarify it.