{{/* 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")}}
{{if ne $previewMode "none"}} {{end}}
{{svg "octicon-heading"}} {{svg "octicon-heading"}} {{svg "octicon-heading"}}
{{svg "octicon-bold"}} {{svg "octicon-italic"}} {{svg "octicon-strikethrough"}}
{{svg "octicon-quote"}} {{svg "octicon-code"}} {{svg "octicon-link"}}
{{svg "octicon-list-unordered"}} {{svg "octicon-list-ordered"}} {{svg "octicon-tasklist"}}
{{if $mentionsLink}}
{{svg "octicon-mention"}} {{svg "octicon-cross-reference"}}
{{end}}
{{if $supportEasyMDE}} {{end}}
{{ctx.Locale.Tr "loading"}}
x