Function: diffSourcePlugin

diffSourcePlugin(params?): RealmPlugin

Parameters

NameTypeDescription
params?Object-
params.codeMirrorExtensions?Extension[]Optional, additional CodeMirror extensions to load in the diff/source mode.
params.diffMarkdown?stringThe markdown to show in the diff editor. Default ts ''
params.viewMode?"source" | "rich-text" | "diff"The initial view mode of the editor. Default ts 'rich-text'

Returns

RealmPlugin