Skip to content

Commit

Permalink
Disabling default history when collaboration is present
Browse files Browse the repository at this point in the history
  • Loading branch information
sritabh committed Sep 2, 2024
1 parent c46f34d commit 08d768b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bigbinary/neeto-editor",
"version": "1.42.0-beta3",
"version": "1.42.0-beta4",
"types": "./types.d.ts",
"description": "neetoEditor is the library that drives the rich text experience in all neeto products built at BigBinary",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const useCustomExtensions = ({
blockquote: options.includes(EDITOR_OPTIONS.BLOCKQUOTE),
orderedList: options.includes(EDITOR_OPTIONS.LIST_ORDERED),
bulletList: options.includes(EDITOR_OPTIONS.LIST_BULLETS),
history: !collaborationProvider,
}),
TextStyle,
Underline,
Expand Down Expand Up @@ -132,7 +133,9 @@ const useCustomExtensions = ({

if (collaborationProvider) {
customExtensions.push(
Collaboration.configure({ document: collaborationProvider.document })
Collaboration.configure({
document: collaborationProvider.document,
})
);

customExtensions.push(
Expand Down

0 comments on commit 08d768b

Please sign in to comment.