Skip to content

Commit

Permalink
fix(YfmTabs): fixed switching between tabs in wysiwyg mode
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m1d0v committed Oct 23, 2024
1 parent 6f229f1 commit 736fc0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/extensions/yfm/YfmTabs/YfmTabsSpecs/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export enum TabsNode {
export enum TabsAttrs {
class = 'class',
dataDiplodocGroup = 'data-diplodoc-group',
dataDiplodocVariant = 'data-diplodoc-variant',
}

export enum TabsListAttrs {
Expand Down
2 changes: 2 additions & 0 deletions src/extensions/yfm/YfmTabs/YfmTabsSpecs/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const getSchemaSpecs: (
attrs: {
[TabsAttrs.class]: {default: 'yfm-tabs'},
[TabsAttrs.dataDiplodocGroup]: {default: 'unknown'},
[TabsAttrs.dataDiplodocVariant]: {default: 'regular'},
},
content: `${TabsNode.TabsList} ${TabsNode.TabPanel}+`,
group: 'block',
Expand Down Expand Up @@ -100,6 +101,7 @@ export const getSchemaSpecs: (
attrs: {
[TabsAttrs.class]: {default: 'yfm-tabs yfm-tabs-vertical'},
[TabsAttrs.dataDiplodocGroup]: {default: 'unknown'},
[TabsAttrs.dataDiplodocVariant]: {default: 'radio'},
},
content: `(${TabsNode.RadioTab} ${TabsNode.TabPanel})+`,
group: 'block',
Expand Down

0 comments on commit 736fc0a

Please sign in to comment.