Skip to content

Commit

Permalink
chore: refactor panel extensions in extension-list
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanad94 committed Jun 5, 2024
1 parent dd3e31f commit 0b05246
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
18 changes: 9 additions & 9 deletions packages/sn-editor-react/src/extension-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ export const createExtensions = (options?: ExtensionOptions) => [
Code.configure(),
CodeBlock.configure(),
Document.configure(),
Panel.configure(),
PanelGroup.configure(),
PanelColapse.configure(),
PanelHeading.configure(),
PanelBody.configure(),
PanelIcon.configure(),
PanelLink.configure(),
PanelTitle.configure(),
Dropcursor.configure(),
Gapcursor.configure(),
HardBreak.configure(),
Expand All @@ -67,10 +59,18 @@ export const createExtensions = (options?: ExtensionOptions) => [
LinkExtend.configure(),
ListItem.configure(),
OrderedList.configure(),
Panel.configure(),
PanelGroup.configure(),
PanelColapse.configure(),
PanelHeading.configure(),
PanelBody.configure(),
PanelIcon.configure(),
PanelLink.configure(),
PanelTitle.configure(),
PanelColapse.configure(),
Paragraph.configure(),
ParagraphExtend.configure(),
Placeholder.configure(options?.placeholder),
PanelColapse.configure(),
SensenetImage.configure(),
Table.configure(),
TableCell.configure(),
Expand Down
2 changes: 0 additions & 2 deletions packages/sn-editor-react/src/extensions/PanelGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { mergeAttributes, Node } from '@tiptap/core'
export const PanelGroup = Node.create({
name: 'panelGroup',

priority: 1100,

draggable: true,

addAttributes() {
Expand Down

0 comments on commit 0b05246

Please sign in to comment.