Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bullet, indent, and de-dent list blocks #168

Closed
Tracked by #123
cloverich opened this issue May 28, 2024 · 0 comments · Fixed by #182
Closed
Tracked by #123

Bullet, indent, and de-dent list blocks #168

cloverich opened this issue May 28, 2024 · 0 comments · Fixed by #182

Comments

@cloverich
Copy link
Owner

cloverich commented May 28, 2024

For blocks themselves, would start with the toolbar, then the actual plugin. For toolbars, in my existing code, can find where I commented out in the insert and toggle blocks menus:

// src/views/edit/editor/toolbar/components/ChangeBlockDropdown.tsx
  // {
  //   value: 'ul',
  //   label: 'Bulleted list',
  //   description: 'Bulleted list',
  //   icon: Icons.ul,
  // },
  // {
  //   value: 'ol',
  //   label: 'Numbered list',
  //   description: 'Numbered list',
  //   icon: Icons.ol,
  // },


// src/views/edit/editor/toolbar/components/InsertBlockDropdown.tsx
      // {
      //   description: "Bulleted list",
      //   icon: Icons.ul,
      //   label: "Bulleted list",
      //   value: "ul",
      // },
      // {
      //   description: "Numbered list",
      //   icon: Icons.ol,
      //   label: "Numbered list",
      //   value: "ol",
      // },

Then in src/views/edit/editor/index.tsx for the lists themselves:

        // createTodoListPlugin(),

Probably going to be some funny business with escaping in and out of them, and making tab work properly.

This was referenced May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant