Skip to content

Commit

Permalink
Fix demo site broken (#2258)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiuqingSong authored Dec 11, 2023
1 parent cb55c5b commit 870d387
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import ContentModelSnapshotPane from './ContentModelSnapshotPane';
import SidePanePlugin from '../../SidePanePlugin';
import { createSnapshotsManager } from 'roosterjs-content-model-core/lib/editor/SnapshotsManagerImpl';
import { createSnapshotsManager } from 'roosterjs-content-model-core';
import { IEditor, PluginEvent, PluginEventType } from 'roosterjs-editor-types';
import {
IStandaloneEditor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ class SnapshotsManagerImpl implements SnapshotsManager {
}

/**
* @internal
* Create a new instance of Undo Snapshots Manager
* @param snapshots @optional Snapshots object for storing undo snapshots. If not passed, default implementation will be used
*/
export function createSnapshotsManager(snapshots?: Snapshots): SnapshotsManager {
return new SnapshotsManagerImpl(snapshots);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ export { NumberingListType } from './constants/NumberingListType';
export { TableBorderFormat } from './constants/TableBorderFormat';

export { createStandaloneEditorCore } from './editor/createStandaloneEditorCore';
export { createSnapshotsManager } from './editor/SnapshotsManagerImpl';

0 comments on commit 870d387

Please sign in to comment.