MarkdownView.getMode method
MarkdownView › getMode
Official
Get the current mode of the markdown view.It returns
'source' for Live Preview as well as for Source mode, because both are the editing mode. To tell them apart, read source from MarkdownView.getState: it is true in Source mode and false in Live Preview.Signature:
getMode(): MarkdownViewModeTypeReturns: MarkdownViewModeType