{{/* Template Attributes: * CustomInit: do not initialize the editor automatically * ContainerId: id attribute for the container element * ContainerClasses: additional classes for the container element * MarkdownEditorContext: the context data for the editor, see backend MarkdownEditorContext * TextareaName: name attribute for the textarea * TextareaContent: content for the textarea * TextareaMaxLength: maxlength attribute for the textarea * TextareaPlaceholder: placeholder attribute for the textarea * TextareaAriaLabel: aria-label attribute for the textarea * DropzoneParentContainer: container for file upload (leave it empty if no upload) * DisableAutosize: whether to disable automatic height resizing */}} {{$ariaLabel := or .TextareaAriaLabel .TextareaPlaceholder}} {{$editorContext := .MarkdownEditorContext}} {{$previewMode := or $editorContext.PreviewMode ""}} {{$previewContext := or $editorContext.PreviewContext ""}} {{$previewLink := or $editorContext.PreviewLink (print AppSubUrl "/-/markup")}} {{$mentionsLink := or $editorContext.MentionsLink ""}} {{$supportEasyMDE := or (eq $previewMode "comment") (eq $previewMode "wiki")}}