|
@@ -351,6 +351,7 @@ export const generateViewOptions = (
|
|
|
components.h2 = Header;
|
|
components.h2 = Header;
|
|
|
components.h3 = Header;
|
|
components.h3 = Header;
|
|
|
components.lsx = props => <Lsx {...props} forceToFetchData />;
|
|
components.lsx = props => <Lsx {...props} forceToFetchData />;
|
|
|
|
|
+ components.drawio = props => <drawioPlugin.Drawio {...props} />;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// // Add configurers for viewer
|
|
// // Add configurers for viewer
|
|
@@ -423,6 +424,7 @@ export const generateSimpleViewOptions = (config: RendererConfig, pagePath: stri
|
|
|
// add components
|
|
// add components
|
|
|
if (components != null) {
|
|
if (components != null) {
|
|
|
components.lsx = props => <Lsx {...props} />;
|
|
components.lsx = props => <Lsx {...props} />;
|
|
|
|
|
+ components.drawio = props => <drawioPlugin.Drawio {...props} />;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
verifySanitizePlugin(options, false);
|
|
verifySanitizePlugin(options, false);
|
|
@@ -462,6 +464,7 @@ export const generatePreviewOptions = (config: RendererConfig, pagePath: string)
|
|
|
// add components
|
|
// add components
|
|
|
if (components != null) {
|
|
if (components != null) {
|
|
|
components.lsx = props => <Lsx {...props} />;
|
|
components.lsx = props => <Lsx {...props} />;
|
|
|
|
|
+ components.drawio = props => <drawioPlugin.Drawio {...props} />;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// verifySanitizePlugin(options, false);
|
|
// verifySanitizePlugin(options, false);
|