summaryrefslogtreecommitdiffstats
path: root/client/components/main/editor.jade
blob: 5c5454ee8f0f4a9e56ebc03f59244dd50660d6a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
template(name="editor")
  // With Richer editor is in use, and comment is submitted,
  // clear comment form with JQuery Comment at
  // client/components/activities/comments.js . Id #summernote is defined
  // here at client/components/main/editor.jade where it previously was
  // id=id, now it is id="summernote".
  textarea.editor(
    dir="auto"
    class="{{class}}"
    id="summernote"
    autofocus=autofocus
    placeholder="{{_ 'comment-placeholder'}}")
    +Template.contentBlock

template(name="viewer")
  .viewer(dir="auto")
    +mentions
      +markdown
        {{> UI.contentBlock }}