Web: Doceditor: fixed initialtab title
This commit is contained in:
parent
69a2e81de6
commit
de71c6a1c6
@ -419,7 +419,6 @@ export default function Editor({
|
|||||||
} else {
|
} else {
|
||||||
title = organizationName;
|
title = organizationName;
|
||||||
}
|
}
|
||||||
console.log("setDocumentTitle", title);
|
|
||||||
document.title = title;
|
document.title = title;
|
||||||
setNewDocumentTitle(title);
|
setNewDocumentTitle(title);
|
||||||
}; //+++
|
}; //+++
|
||||||
@ -613,10 +612,7 @@ export default function Editor({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const SharingDialog = renderSharing();
|
const SharingDialog = renderSharing();
|
||||||
/* <Head>
|
|
||||||
<title>{documentTitle}</title>
|
|
||||||
<link id="favicon" rel="shortcut icon" href={faviconHref} />
|
|
||||||
</Head> */
|
|
||||||
return (
|
return (
|
||||||
<EditorWrapper isVisibleSharingDialog={isVisible}>
|
<EditorWrapper isVisibleSharingDialog={isVisible}>
|
||||||
{needLoader ? (
|
{needLoader ? (
|
||||||
|
@ -5,9 +5,7 @@ import render from "./server/render";
|
|||||||
import i18nextMiddleware from "i18next-express-middleware";
|
import i18nextMiddleware from "i18next-express-middleware";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import Backend from "i18next-node-fs-backend";
|
import Backend from "i18next-node-fs-backend";
|
||||||
import pkg from "../package.json";
|
|
||||||
|
|
||||||
const { title } = pkg;
|
|
||||||
const app = express();
|
const app = express();
|
||||||
const port = process.env.PORT || 5013;
|
const port = process.env.PORT || 5013;
|
||||||
|
|
||||||
@ -60,7 +58,6 @@ app.get("/products/files/doceditor", async (req, res) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const response = template(
|
const response = template(
|
||||||
title,
|
|
||||||
props,
|
props,
|
||||||
content,
|
content,
|
||||||
styleTags,
|
styleTags,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { getFavicon } from "../helpers/utils";
|
import { getFavicon } from "../helpers/utils";
|
||||||
|
import pkg from "../../package.json";
|
||||||
|
|
||||||
export default function template(
|
export default function template(
|
||||||
title,
|
|
||||||
initialState = {},
|
initialState = {},
|
||||||
content = "",
|
content = "",
|
||||||
styleTags,
|
styleTags,
|
||||||
@ -9,6 +9,7 @@ export default function template(
|
|||||||
initialI18nStore,
|
initialI18nStore,
|
||||||
initialLanguage
|
initialLanguage
|
||||||
) {
|
) {
|
||||||
|
const { title } = pkg;
|
||||||
const { docApiUrl } = initialState;
|
const { docApiUrl } = initialState;
|
||||||
const faviconHref = getFavicon(initialState?.config?.documentType);
|
const faviconHref = getFavicon(initialState?.config?.documentType);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user