这是indexloc提供的服务,不要输入任何密码
Skip to content

Add Bubble Menu to Tiptap Editor #374

@DennisAlund

Description

@DennisAlund

Description

When highlighting text in the Tiptap editor, a bubble menu should pop up with the following menu options, as displayed in the provided screenshot. These menu options should be placeholders without any functionality. The goal is to ensure that the bubble menu works correctly and appears when text is highlighted.

Menu Options

Requirements

  1. Bubble Menu Appearance:

    • The bubble menu should appear when text is highlighted in the Tiptap editor.
    • The menu should include all the listed menu options as placeholders.
  2. Placeholder Menu Options:

    • Each menu option should be a placeholder with no functionality. The purpose is only to display the menu.
  3. Styling:

    • The bubble menu should be styled to match the appearance in the provided screenshot.
    • Use the same icons as the rest of the web application to make it consistent with menus and buttons in other parts of the application UI

Steps to Accomplish

  1. Install Tiptap Extensions:

    • Ensure all necessary Tiptap extensions for the bubble menu are installed.
  2. Create Bubble Menu Component:

    • Create a bubble menu component that includes the listed menu options.
  3. Integrate Bubble Menu:

    • Integrate the bubble menu with the Tiptap editor to display it when text is highlighted.
  4. Style the Bubble Menu:

    • Apply appropriate CSS to style the bubble menu as shown in the screenshot.

Acceptance Criteria

  • The bubble menu appears when text is highlighted in the Tiptap editor.
  • The menu includes all the listed options as placeholders.
  • The menu options have no functionality.
  • The styling matches the provided screenshot.

Screenshot

Bubble menu

image

Paragraph style dropdown

image

References

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions