Skip to content

Commit a5099b3

Browse files
committed
chore: kludges to get the build working
1 parent 750a942 commit a5099b3

File tree

3 files changed

+10
-4
lines changed
  • examples
    • 05-interoperability
      • 06-converting-blocks-to-docx/src
      • 07-converting-blocks-to-odt/src
    • 06-custom-schema/06-toggleable-blocks/src

3 files changed

+10
-4
lines changed

examples/05-interoperability/06-converting-blocks-to-docx/src/App.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function App() {
3232
// Creates a new editor instance.
3333
const editor = useCreateBlockNote({
3434
// Adds support for page breaks & multi-column blocks.
35-
schema: withMultiColumn(withPageBreak(BlockNoteSchema.create())),
35+
schema: withMultiColumn(withPageBreak(BlockNoteSchema.create())) as any,
3636
dropCursor: multiColumnDropCursor,
3737
dictionary: {
3838
...locales.en,
@@ -397,7 +397,10 @@ export default function App() {
397397

398398
// Exports the editor content to DOCX and downloads it.
399399
const onDownloadClick = async () => {
400-
const exporter = new DOCXExporter(editor.schema, docxDefaultSchemaMappings);
400+
const exporter = new DOCXExporter(
401+
editor.schema,
402+
docxDefaultSchemaMappings as any,
403+
);
401404
const blob = await exporter.toBlob(editor.document);
402405

403406
const link = document.createElement("a");

examples/05-interoperability/07-converting-blocks-to-odt/src/App.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,10 @@ export default function App() {
396396

397397
// Exports the editor content to ODT and downloads it.
398398
const onDownloadClick = async () => {
399-
const exporter = new ODTExporter(editor.schema, odtDefaultSchemaMappings);
399+
const exporter = new ODTExporter(
400+
editor.schema,
401+
odtDefaultSchemaMappings as any,
402+
);
400403
const blob = await exporter.toODTDocument(editor.document);
401404

402405
const link = document.createElement("a");

examples/06-custom-schema/06-toggleable-blocks/src/Toggle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const ToggleBlock = createReactBlockSpec(
77
type: "toggle",
88
propSchema: {
99
...defaultProps,
10-
},
10+
} as typeof defaultProps,
1111
content: "inline",
1212
},
1313
{

0 commit comments

Comments
 (0)