File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
06-converting-blocks-to-docx/src
07-converting-blocks-to-odt/src
06-custom-schema/06-toggleable-blocks/src Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff 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" ) ;
Original file line number Diff line number Diff 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" ) ;
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments