Skip to content

Commit

Permalink
feat: allow selection for list-item, heading and checkbox (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m1d0v authored Jun 26, 2023
1 parent 3574ea2 commit e0ade05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/extensions/markdown/Lists/ListsSpecs/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const spec: Record<ListNode, NodeSpec> = {
toDOM() {
return ['li', 0];
},
selectable: false,
selectable: true,
allowSelection: false,
disableGapCursor: true,
complex: 'leaf',
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/yfm/Checkbox/CheckboxSpecs/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const getSpec = (
[CheckboxNode.Checkbox]: {
group: 'block',
content: `${CheckboxNode.Input} ${CheckboxNode.Label}`,
selectable: false,
selectable: true,
allowSelection: false,
parseDOM: [],
attrs: {
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/yfm/YfmHeading/YfmHeadingSpecs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const YfmHeadingSpecs: ExtensionAuto<YfmHeadingSpecsOptions> = (builder,
content: '(text | inline)*',
group: 'block',
defining: true,
selectable: false,
selectable: true,
parseDOM: [
{tag: 'h1', getAttrs: getNodeAttrs(1)},
{tag: 'h2', getAttrs: getNodeAttrs(2)},
Expand Down

0 comments on commit e0ade05

Please sign in to comment.