Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/src/editor/BlockNoteEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1482,7 +1482,7 @@ export class BlockNoteEditor<
* @returns The blocks, serialized as an HTML string.
*/
public blocksToFullHTML(
blocks: PartialBlock<BSchema, ISchema, SSchema>[],
blocks: PartialBlock<BSchema, ISchema, SSchema>[] = this.document,
): string {
return this._exportManager.blocksToFullHTML(blocks);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/editor/managers/ExportManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class ExportManager<
* @returns The blocks, serialized as an HTML string.
*/
public blocksToFullHTML(
blocks: PartialBlock<BSchema, ISchema, SSchema>[],
blocks: PartialBlock<BSchema, ISchema, SSchema>[] = this.editor.document,
): string {
const exporter = createInternalHTMLSerializer(
this.editor.pmSchema,
Expand Down
Loading