You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Put an X between the brackets on this line if you have done all of the following: ...
Description
The wrong context menu is sometimes displayed by the Markdown Preview pane. The function highlightCodeBlocks in renderer.coffee renders preformatted HTML blocks by creating instances of TextEditor and inserting them into the DOM. However, these TextEditor instances are not managed as Pane items. Instead, Workspace.getActivePaneItem() returns an instance of MarkdownPreviewView. Consequently, Workspace.getActiveTextEditor() returns undefined to the menu-item handlers.
Steps to Reproduce
Open a markdown file
Create a code block or HTML <pre> element with some content
Toggle Markdown-Preview
In the preview pane, right-click inside the code block
Expected behavior: The .markdown-preview context-menu should be displayed.
Actual behavior: The atom-text-editor context-menu is displayed.