fix: RTL support on post textarea

Fixing right to left (short: RTL) support for respective RTL languages
by adding auto-detection for the user content's directionality based on
the text's language.

Fixes #612
pull/826/head
Andreas Sander 1 year ago
parent 3e7d236c6d
commit 4c6169d55d
  1. 2
      templates/bare.tmpl
  2. 2
      templates/pad.tmpl

@ -14,7 +14,7 @@
<div id="overlay"></div> <div id="overlay"></div>
<textarea id="writer" placeholder="Write..." class="{{.Post.Font}}" autofocus>{{if .Post.Title}}# {{.Post.Title}} <textarea dir="auto" id="writer" placeholder="Write..." class="{{.Post.Font}}" autofocus>{{if .Post.Title}}# {{.Post.Title}}
{{end}}{{.Post.Content}}</textarea> {{end}}{{.Post.Content}}</textarea>

@ -14,7 +14,7 @@
<div id="overlay"></div> <div id="overlay"></div>
<textarea id="writer" placeholder="Write..." class="{{.Post.Font}}" autofocus>{{if .Post.Title}}# {{.Post.Title}} <textarea dir="auto" id="writer" placeholder="Write..." class="{{.Post.Font}}" autofocus>{{if .Post.Title}}# {{.Post.Title}}
{{end}}{{.Post.Content}}</textarea> {{end}}{{.Post.Content}}</textarea>

Loading…
Cancel
Save