Skip to content

Fix code block #345

Open
Open

Description

@vitonsky

The code block is totally broken for now.

Let's fix it step by step:

  • insertion. Currently i cannot out of code block after insertion
  • sometimes i see a bug when content takes more lines that code block draws. So code block looks broken
  • add button to delete block
  • add button to convert block content to the text
  • add selector to select language
  • add button to copy code content

Activity

  1. added
    bugSomething isn't working
    UXSomething important for user experience
    scope:editorRelated to any editor features
    on Jul 5, 2026
  2. linked a pull request that will close this issuefix: code block #379on Oct 13, 2026
  3. vitonsky commented on Oct 13, 2026

    @vitonsky
    MemberAuthor

    It seems we technically cannot to wrap code block to extend its features.
    So it is not possible to extend code node and add elements to pick language, copy content and delete block.

    With this design in mind we should update a way how user interact with blocks.

    My proposal is to introduce a context menu where user will see all options available against current block including

    • Conversion into another block types (paragraph/quote/code/etc)
    • Formatting
    • Editing (delete block,set language,set link,etc)
    • Context actions (download file, copy link, go to link, open note by it, etc)

    In scope of current ticket we can only solve a bugs about code block and create a new task about context menu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    UXSomething important for user experiencebugSomething isn't workingscope:editorRelated to any editor features

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions